SSL_CTX_set_cookie_generate_cb

Set the callback that generates DTLS HelloVerifyRequest cookies.

Synopsis

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*));

Parameters

NameDescription
ctxDTLS SSL context that uses DTLSv1_listen.
app_gen_cookie_cbCallback that writes at most DTLS1_COOKIE_LENGTH bytes into cookie and sets cookie_len.