tls_session_secret_cb_fn

EAP-FAST callback that supplies the TLS master secret for a connection.

Synopsis

Declared in <openssl/ssl.h>

typedef int(* tls_session_secret_cb_fn)(SSL*, void*, int*, stack_st_SSL_CIPHER*, SSL_CIPHER const**, void*);

Return Value

Non-zero on success, or 0 on failure.

Parameters

NameDescription
sSSL connection for which the master secret is being established.
secretBuffer that receives the master secret bytes written by the callback.
secret_lenOn entry, capacity of secret; on return, length of the secret written (must not exceed the capacity).
peer_ciphersOn the server, ciphersuites offered by the peer; always NULL on the client.
cipherOptional preferred SSL_CIPHER selected by the callback, or left unchanged.
argOpaque pointer from SSL_set_session_secret_cb().