Allocate a new custom BIO_METHOD with the given type index and name.

Synopsis

Declared in <openssl/bio.h>

BIO_METHOD*
BIO_meth_new(
    int type,
    char const* name);

Return Value

New method table, or NULL on allocation failure; free with BIO_meth_free().

Parameters

Name

Description

type

BIO type index (often from BIO_get_new_index(), combined with BIO_TYPE_* flags).

name

Human‐readable method name stored on the BIO_METHOD.

Created with MrDocs