SSL_custom_ext_parse_cb_ex

Parse a received custom TLS extension (context-aware form).

Synopsis

Declared in <openssl/ssl.h>

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

Return Value

1 if the extension is acceptable; 0 or negative to abort with al.

Parameters

NameDescription
sSSL connection parsing the message.
ext_typeTLS extension type being parsed.
contextBitmask identifying the message and conditions for this call.
inExtension payload bytes (temporary; invalid after return).
inlenLength of in in bytes.
xCurrent certificate when parsing a Certificate message, else NULL.
chainidxIndex of x in the Certificate message (0 = end entity).
alOn fatal error, set to the TLS alert to send.
parse_argApplication argument registered with the extension.