Lines Matching refs:snonce
34 const char *snonce;
51 unsigned char snonce[SCRAM_SERVER_NONCE_LEN+1];
55 random_fill(snonce, sizeof(snonce)-1);
57 /* make sure snonce is printable and does not contain ',' */
58 for (i = 0; i < sizeof(snonce)-1; i++) {
59 snonce[i] = (snonce[i] % ('~' - '!')) + '!';
60 if (snonce[i] == ',')
61 snonce[i] = '~';
63 snonce[sizeof(snonce)-1] = '\0';
64 request->snonce = p_strndup(request->pool, snonce, sizeof(snonce));
66 str = t_str_new(sizeof(snonce));
67 str_printfa(str, "r=%s%s,s=%s,i=%d", request->cnonce, request->snonce,
313 nonce_str = t_strconcat("r=", request->cnonce, request->snonce, NULL);