EAP-FAST callback that supplies the TLS master secret for a connection.
Declared in <openssl/ssl.h>
typedef int(* tls_session_secret_cb_fn)(SSL*, void*, int*, stack_st_SSL_CIPHER*, SSL_CIPHER const**, void*);
Non-zero on success, or 0 on failure.
| Name | Description |
|---|---|
| s | SSL connection for which the master secret is being established. |
| secret | Buffer that receives the master secret bytes written by the callback. |
| secret_len | On entry, capacity of secret; on return, length of the secret written (must not exceed the capacity). |
| peer_ciphers | On the server, ciphersuites offered by the peer; always NULL on the client. |
| cipher | Optional preferred SSL_CIPHER selected by the callback, or left unchanged. |
| arg | Opaque pointer from SSL_set_session_secret_cb(). |