BIO_new_ssl

Allocate an SSL filter BIO using the given context.

Synopsis

Declared in <openssl/ssl.h>

BIO*
BIO_new_ssl(
    SSL_CTX* ctx,
    int client);

Return Value

New SSL BIO on success, or NULL on failure.

Parameters

NameDescription
ctxSSL context used to create the internal SSL object.
clientNon-zero for client mode; zero for server mode.