Lines Matching defs:nonce

182     unsigned char *nonce;
219 unsigned char *nonce;
330 unsigned char *pszNonce, /* nonce from server */
332 unsigned char *pszCNonce, /* client nonce */
2271 if (text->nonce) utils->free(text->nonce);
2303 if (reauth->nonce) utils->free(reauth->nonce);
2336 int stale; /* last nonce is stale */
2373 unsigned char *nonce,
2394 nonce,
2400 nonce, /* nonce from server */
2402 cnonce, /* client nonce */
2424 nonce, /* nonce from server */
2426 cnonce, /* client nonce */
2564 unsigned char *nonce;
2626 * digest-challenge = 1#( realm | nonce | qop-options | stale | maxbuf |
2631 /* FIXME: get nonce XXX have to clean up after self if fail */
2633 nonce = create_nonce(sparams->utils);
2634 if (nonce == NULL) {
2638 "internal error: failed creating a nonce");
2640 SETERROR(sparams->utils, "internal erorr: failed creating a nonce");
2646 resplen = strlen((char *)nonce) + strlen("nonce") + 5;
2648 resplen = strlen(nonce) + strlen("nonce") + 5;
2654 sparams->utils->free(nonce);
2661 sprintf(text->out_buf, "nonce=\"%s\"", nonce);
2672 sparams->utils->free(nonce);
2694 sparams->utils->free(nonce);
2714 sparams->utils->free(nonce);
2723 /* "stale" is true if a reauth failed because of a nonce timeout */
2729 sparams->utils->free(nonce);
2772 sparams->utils->free(nonce);
2798 sparams->utils->free(nonce);
2810 sparams->utils->free(nonce);
2822 text->nonce = nonce;
2852 unsigned char *nonce = NULL, *cnonce = NULL;
2904 * digest-response = 1#( username | realm | nonce | cnonce |
2905 * nonce-count | qop | digest-uri | response | maxbuf | charset |
2940 } else if (strcasecmp(name, "nonce") == 0) {
2941 _plug_strdup(sparams->utils, value, (char **) &nonce, NULL);
3032 * cnonce-value <"> cnonce-value = qdstr-val nonce-count = "nc"
3044 (nonce == NULL) ||
3070 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].nonce,
3071 (char **) &text->nonce, NULL);
3073 _plug_strdup(sparams->utils, text->reauth->e[val].nonce,
3074 (char **) &text->nonce, NULL);
3089 if (!text->nonce) {
3113 if (strcmp((char *)nonce, (char *) text->nonce) != 0) {
3115 "nonce changed: authentication aborted");
3117 if (strcmp(nonce, (char *) text->nonce) != 0) {
3119 "nonce changed: authentication aborted");
3127 "incorrect nonce-count: authentication aborted");
3130 "incorrect nonce-count: authentication aborted");
3264 * ":", nonce-value, ":", cnonce-value }
3364 text->nonce,
3395 /* see if our nonce expired */
3399 SETERROR(sparams->utils, gettext("server nonce expired"));
3401 SETERROR(sparams->utils, "server nonce expired");
3474 * checks that the nonce-count is "00000001". If it supports subsequent
3475 * authentication, it saves the value of the nonce and the nonce-count.
3525 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
3560 if (nonce != NULL)
3561 sparams->utils->free (nonce);
3850 unsigned char *nonce,
3865 if(!username || !cnonce || !nonce || !ncvalue || !digesturi || !passwd) {
3886 nonce,
3892 nonce, /* nonce from server */
3894 cnonce, /* client nonce */
3914 nonce, /* nonce from server */
3916 cnonce, /* client nonce */
4010 text->nonce,
4061 "nonce", text->nonce, TRUE) != SASL_OK) {
4296 } else if (strcasecmp(name, "nonce") == 0) {
4297 _plug_strdup(params->utils, value, (char **) &text->nonce,
4474 if (text->nonce == NULL) {
4477 "Don't have nonce.");
4480 "Don't have nonce.");
4815 if (text->nonce) params->utils->free(text->nonce);
4822 _plug_strdup(params->utils, (char *)text->reauth->e[val].nonce,
4823 (char **) &text->nonce, NULL);
4825 _plug_strdup(params->utils, text->reauth->e[val].nonce,
4826 (char **) &text->nonce, NULL);
4843 if (!text->nonce) {
4851 * (username | realm | nonce | cnonce | nonce-count | qop digest-uri |
4888 if (text->nonce == NULL) {
4908 * (username | realm | nonce | cnonce | nonce-count | qop digest-uri |
5014 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
5114 if (text->nonce) params->utils->free(text->nonce);
5118 text->nonce = text->cnonce = NULL;
5120 text->realm = text->nonce = text->cnonce = NULL;