BIO_get_new_index

Allocate a new unique BIO type index for a custom BIO_METHOD.

Synopsis

Declared in <openssl/bio.h>

int
BIO_get_new_index();

Return Value

New type index in the BIO_TYPE_START range, or a negative value on failure.