[#SSL_CTX_set_cookie_generate_cb] = SSL_CTX_set_cookie_generate_cb :mrdocs: Set the callback that generates DTLS HelloVerifyRequest cookies. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void SSL_CTX_set_cookie_generate_cb( xref:SSL_CTX.adoc[SSL_CTX]* ctx, int(* app_gen_cookie_cb)(xref:SSL.adoc[SSL]*, unsigned char*, unsigned int*)); ---- == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#