Home
last modified time | relevance | path

Searched refs:cookie_len (Results 1 – 25 of 28) sorted by relevance

12

/openbsd/usr.bin/openssl/
H A Ds_apps.h148 unsigned int *cookie_len);
150 unsigned int cookie_len);
H A Ds_cb.c796 unsigned int *cookie_len) in generate_cookie_callback() argument
857 *cookie_len = resultlength; in generate_cookie_callback()
864 unsigned int cookie_len) in verify_cookie_callback() argument
927 if (cookie_len == resultlength && in verify_cookie_callback()
/openbsd/sbin/unwind/libunbound/util/
H A Dedns.h191 size_t cookie_len, const uint8_t* secret, size_t secret_len, int v4,
228 const uint8_t* cookie, size_t cookie_len,
H A Dedns.c157 edns_cookie_server_validate(const uint8_t* cookie, size_t cookie_len, in edns_cookie_server_validate() argument
165 if(cookie_len != 24) in edns_cookie_server_validate()
276 cookie_secrets_server_validate(const uint8_t* cookie, size_t cookie_len, in cookie_secrets_server_validate() argument
292 cookie_len, in cookie_secrets_server_validate()
/openbsd/usr.sbin/unbound/util/
H A Dedns.h191 size_t cookie_len, const uint8_t* secret, size_t secret_len, int v4,
228 const uint8_t* cookie, size_t cookie_len,
H A Dedns.c157 edns_cookie_server_validate(const uint8_t* cookie, size_t cookie_len, in edns_cookie_server_validate() argument
165 if(cookie_len != 24) in edns_cookie_server_validate()
276 cookie_secrets_server_validate(const uint8_t* cookie, size_t cookie_len, in cookie_secrets_server_validate() argument
292 cookie_len, in cookie_secrets_server_validate()
/openbsd/usr.sbin/nsd/
H A Dedns.c74 edns->cookie_len = 0; in edns_init_record()
111 edns->cookie_len = optlen; in edns_handle_option()
246 if(q->edns.cookie_len != 24) in cookie_verify()
H A Dedns.h63 size_t cookie_len; member
/openbsd/lib/libssl/
H A Dd1_lib.c97 s->d1->cookie_len = sizeof(s->d1->cookie); in dtls1_new()
210 s->d1->cookie_len = sizeof(s->d1->cookie); in dtls1_clear()
H A Ddtls_local.h148 unsigned int cookie_len; member
H A Dssl_tlsext.c1813 s->s3->hs.tls13.cookie_len > 0 && s->s3->hs.tls13.cookie != NULL); in tlsext_cookie_client_needs()
1825 s->s3->hs.tls13.cookie_len)) in tlsext_cookie_client_build()
1842 if (CBS_len(&cookie) != s->s3->hs.tls13.cookie_len) in tlsext_cookie_server_process()
1851 s->s3->hs.tls13.cookie_len)) { in tlsext_cookie_server_process()
1868 s->s3->hs.tls13.cookie_len > 0 && s->s3->hs.tls13.cookie != NULL); in tlsext_cookie_server_needs()
1882 s->s3->hs.tls13.cookie_len)) in tlsext_cookie_server_build()
1902 s->s3->hs.tls13.cookie_len != 0) { in tlsext_cookie_client_process()
1911 &s->s3->hs.tls13.cookie_len)) in tlsext_cookie_client_process()
H A Dssl_clnt.c705 if (s->d1->cookie_len > sizeof(s->d1->cookie)) { in ssl3_send_client_hello()
712 s->d1->cookie_len)) in ssl3_send_client_hello()
757 size_t cookie_len; in ssl3_get_dtls_hello_verify() local
797 sizeof(s->d1->cookie), &cookie_len)) { in ssl3_get_dtls_hello_verify()
798 s->d1->cookie_len = 0; in ssl3_get_dtls_hello_verify()
802 s->d1->cookie_len = cookie_len; in ssl3_get_dtls_hello_verify()
H A Dssl_srvr.c935 size_t cookie_len; in ssl3_get_client_hello() local
939 sizeof(s->d1->rcvd_cookie), &cookie_len)) in ssl3_get_client_hello()
944 s->d1->rcvd_cookie, cookie_len) == 0) { in ssl3_get_client_hello()
952 s->d1->cookie, s->d1->cookie_len) != 0) { in ssl3_get_client_hello()
1184 &(s->d1->cookie_len)) == 0) { in ssl3_send_dtls_hello_verify_request()
1201 if (!CBB_add_bytes(&cookie, s->d1->cookie, s->d1->cookie_len)) in ssl3_send_dtls_hello_verify_request()
H A Dssl_local.h508 size_t cookie_len; member
736 unsigned int *cookie_len);
740 unsigned int cookie_len);
H A Dssl_sess.c1303 int (*cb)(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len)) in SSL_CTX_set_cookie_generate_cb() argument
1311 int (*cb)(SSL *ssl, const unsigned char *cookie, unsigned int cookie_len)) in SSL_CTX_set_cookie_verify_cb() argument
H A Ds3_lib.c1291 freezero(s->s3->hs.tls13.cookie, s->s3->hs.tls13.cookie_len); in ssl3_free()
1343 freezero(s->s3->hs.tls13.cookie, s->s3->hs.tls13.cookie_len); in ssl3_clear()
1345 s->s3->hs.tls13.cookie_len = 0; in ssl3_clear()
/openbsd/regress/lib/libssl/dtls/
H A Ddtlstest.c386 unsigned int *cookie_len) in dtls_cookie_generate() argument
390 *cookie_len = sizeof(dtls_cookie); in dtls_cookie_generate()
397 unsigned int cookie_len) in dtls_cookie_verify() argument
399 return cookie_len == sizeof(dtls_cookie) && in dtls_cookie_verify()
/openbsd/usr.bin/ldap/
H A Daldap.h53 unsigned int cookie_len; member
H A Daldap.c326 page->cookie_len) == NULL) in aldap_create_page_control()
475 page->cookie_len = elm->be_sub->be_next->be_len; in aldap_parse_page_control()
477 if ((page->cookie = malloc(page->cookie_len)) == NULL) { in aldap_parse_page_control()
484 memcpy(page->cookie, s, page->cookie_len); in aldap_parse_page_control()
/openbsd/libexec/login_ldap/
H A Daldap.h55 unsigned int cookie_len; member
H A Daldap.c326 page->cookie_len) == NULL) in aldap_create_page_control()
475 page->cookie_len = elm->be_sub->be_next->be_len; in aldap_parse_page_control()
477 if ((page->cookie = malloc(page->cookie_len)) == NULL) { in aldap_parse_page_control()
484 memcpy(page->cookie, s, page->cookie_len); in aldap_parse_page_control()
/openbsd/usr.sbin/ypldap/
H A Daldap.h56 unsigned int cookie_len; member
H A Daldap.c362 page->cookie_len) == NULL) in aldap_create_page_control()
511 page->cookie_len = elm->be_sub->be_next->be_len; in aldap_parse_page_control()
513 if ((page->cookie = malloc(page->cookie_len)) == NULL) { in aldap_parse_page_control()
520 memcpy(page->cookie, s, page->cookie_len); in aldap_parse_page_control()
/openbsd/usr.sbin/unbound/testcode/
H A Dtestpkts.c1567 int cookie_len = extract_cookie(query_pkt, len, in find_match() local
1569 if(cookie_len == -1) { in find_match()
1574 cookie_len != 8) { in find_match()
1579 cookie_len != 24) { in find_match()
/openbsd/regress/lib/libssl/tlsext/
H A Dtlsexttest.c4004 ssl->s3->hs.tls13.cookie_len = strlen(cookie); in test_tlsext_cookie_client()
4094 ssl->s3->hs.tls13.cookie_len = strlen(cookie); in test_tlsext_cookie_server()
4125 freezero(ssl->s3->hs.tls13.cookie, ssl->s3->hs.tls13.cookie_len); in test_tlsext_cookie_server()
4127 ssl->s3->hs.tls13.cookie_len = 0; in test_tlsext_cookie_server()
4135 ssl->s3->hs.tls13.cookie_len) != 0) { in test_tlsext_cookie_server()

12