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

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.

Created with MrDocs