Set the callback that generates DTLS HelloVerifyRequest cookies.
Declared in <openssl/ssl.h>
void
SSL_CTX_set_cookie_generate_cb(
SSL_CTX* ctx,
int(* app_gen_cookie_cb)(SSL*, unsigned char*, unsigned int*));
| Name | Description |
|---|---|
| ctx | DTLS SSL context that uses DTLSv1_listen. |
| app_gen_cookie_cb | Callback that writes at most DTLS1_COOKIE_LENGTH bytes into cookie and sets cookie_len. |