custom_ext_add_cb

Callback that supplies payload bytes for a legacy custom TLS extension being sent.

Synopsis

Declared in <openssl/ssl.h>

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

Return Value

  • 1 to include the extension, 0 to omit it, or a negative value to abort with *al.
  • 1 to include the extension, 0 to omit it, or a negative value to abort with *al.

Parameters

NameDescription
sSSL connection constructing the extension.
ext_typeTLS extension type code being added.
outSet to point at the extension payload bytes to send.
outlenReceives the length of *out.
alSet to a TLS alert description if the callback fails.
add_argApplication argument registered with the extension.