Callback that supplies payload bytes for a legacy custom TLS extension being sent.
Declared in <openssl/ssl.h>
typedef int(* custom_ext_add_cb)(SSL*, unsigned int, unsigned char const**, size_t*, int*, void*);
al.al.| Name | Description |
|---|---|
| s | SSL connection constructing the extension. |
| ext_type | TLS extension type code being added. |
| out | Set to point at the extension payload bytes to send. |
| outlen | Receives the length of *out. |
| al | Set to a TLS alert description if the callback fails. |
| add_arg | Application argument registered with the extension. |