[OpenBSD]

Manual Page Search Parameters

SSL_SESSION_SET1_ID_CONTEXT(3) Library Functions Manual SSL_SESSION_SET1_ID_CONTEXT(3)

NAME

SSL_SESSION_set1_id_contextset the SSL ID context associated with a session

SYNOPSIS

#include <openssl/ssl.h>
int
SSL_SESSION_set1_id_context(SSL_SESSION *s, const unsigned char *sid_ctx, unsigned int sid_ctx_len);

DESCRIPTION

SSL_SESSION_set1_id_context() takes a copy of the provided ID context given in sid_ctx and associates it with the session s. The length of the ID context is given by sid_ctx_len which must not exceed SSL_MAX_SID_CTX_LENGTH bytes.

RETURN VALUES

SSL_SESSION_set1_id_context() returns 1 on success or 0 on error.

SEE ALSO

ssl(3), SSL_CTX_set_session_id_context(3), SSL_get_session(3), SSL_SESSION_new(3)
April 10, 2017 OpenBSD-current