Lines Matching defs:authctxt
48 get_challenge(Authctxt *authctxt)
62 if ((authctxt->kbdintctxt = device->init_ctx(authctxt)) == NULL)
64 if (device->query(authctxt->kbdintctxt, &name, &info,
66 device->free_ctx(authctxt->kbdintctxt);
67 authctxt->kbdintctxt = NULL;
83 verify_response(Authctxt *authctxt, const char *response)
91 if (authctxt->kbdintctxt == NULL)
94 switch (device->respond(authctxt->kbdintctxt, 1, resp)) {
99 if ((device->query(authctxt->kbdintctxt, &name, &info,
103 device->respond(authctxt->kbdintctxt, 0, resp) == 0)
114 device->free_ctx(authctxt->kbdintctxt);
115 authctxt->kbdintctxt = NULL;
119 abandon_challenge_response(Authctxt *authctxt)
121 if (authctxt->kbdintctxt != NULL) {
122 device->free_ctx(authctxt->kbdintctxt);
123 authctxt->kbdintctxt = NULL;