Set the external session‐lookup callback used when a session id is not in the internal cache.

Synopsis

Declared in <openssl/ssl.h>

void
SSL_CTX_sess_set_get_cb(
    SSL_CTX* ctx,
    SSL_SESSION*(* get_session_cb)(ssl_st*, unsigned char const*, int, int*));

Parameters

Name

Description

ctx

SSL context whose get‐session callback is set.

get_session_cb

Callback receiving the SSL, session‐id bytes, length, and an out copy flag; NULL disables it.

Created with MrDocs