Lines Matching defs:cookie
5569 static unsigned char cookie_magic_value[] = "cookie magic";
5571 static int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
5575 * Not suitable as a real cookie generation function but good enough for
5578 memcpy(cookie, cookie_magic_value, sizeof(cookie_magic_value) - 1);
5584 static int verify_cookie_callback(SSL *ssl, const unsigned char *cookie,
5588 && memcmp(cookie, cookie_magic_value, cookie_len) == 0)
5594 static int generate_stateless_cookie_callback(SSL *ssl, unsigned char *cookie,
5598 int res = generate_cookie_callback(ssl, cookie, &temp);
5603 static int verify_stateless_cookie_callback(SSL *ssl, const unsigned char *cookie,
5606 return verify_cookie_callback(ssl, cookie, cookie_len);
5639 /* Set up the cookie generation and verification callbacks */
5652 /* This should fail because there is no cookie */
5669 /* This should fail because there is no cookie */
5674 /* This should succeed because a cookie is now present */