SSL_CTX_set_cookie_verify_cb

Set the callback that verifies DTLS HelloVerifyRequest cookies.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_set_cookie_verify_cb(
    SSL_CTX* ctx,
    int(* app_verify_cookie_cb)(SSL*, unsigned char const*, unsigned int));

Parameters

NameDescription
ctxDTLS SSL context that uses DTLSv1_listen.
app_verify_cookie_cbCallback that returns nonzero if cookie is valid for ssl.