custom_ext_parse_cb

Callback that parses a received custom TLS extension.

Synopsis

Declared in <openssl/ssl.h>

typedef int(* custom_ext_parse_cb)(SSL*, unsigned int, unsigned char const*, size_t, int*, void*);

Return Value

1 on success, or 0 to abort the handshake (after setting *al).

Parameters

NameDescription
sSSL connection that received the extension.
ext_typeTLS extension type code.
inExtension payload bytes.
inlenLength of in in bytes.
alOn failure, set to a TLS alert description to send.
parse_argApplication argument registered with the extension.