Lines Matching refs:ctx
42 otp_challenge (OtpContext *ctx, char *user, char *str, size_t len)
47 ctx->challengep = 0;
48 ctx->err = NULL;
49 ctx->user = strdup(user);
50 if (ctx->user == NULL) {
51 ctx->err = "Out of memory";
56 ctx->err = "Cannot open database";
59 ret = otp_get (dbm, ctx);
65 ctx->alg->name, ctx->n-1, ctx->seed);
66 ctx->challengep = 1;