Callback that parses a received custom TLS extension.
Declared in <openssl/ssl.h>
typedef int(* custom_ext_parse_cb)(SSL*, unsigned int, unsigned char const*, size_t, int*, void*);
1 on success, or 0 to abort the handshake (after setting *al).
| Name | Description |
|---|---|
| s | SSL connection that received the extension. |
| ext_type | TLS extension type code. |
| in | Extension payload bytes. |
| inlen | Length of in in bytes. |
| al | On failure, set to a TLS alert description to send. |
| parse_arg | Application argument registered with the extension. |