SSL_CTX_add_client_custom_ext

Register older-style custom extension handlers for TLS/DTLS clients.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_add_client_custom_ext(
    SSL_CTX* ctx,
    unsigned int ext_type,
    custom_ext_add_cb add_cb,
    custom_ext_free_cb free_cb,
    void* add_arg,
    custom_ext_parse_cb parse_cb,
    void* parse_arg);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxSSL context used by clients.
ext_typeExtension type (not a NID); must not be handled internally by OpenSSL.
add_cbCallback that supplies extension data to send, or NULL for a zero-length ClientHello extension.
free_cbOptional callback to free data produced by add_cb.
add_argApplication argument passed to add_cb and free_cb.
parse_cbCallback that validates extension data received from the peer.
parse_argApplication argument passed to parse_cb.