Invoke a type‐specific control operation on a BIO.

Synopsis

Declared in <openssl/bio.h>

long
BIO_ctrl(
    BIO* bp,
    int cmd,
    long larg,
    void* parg);

Return Value

Command‐specific long result; often 1 for success and 0/negative for failure.

Parameters

Name

Description

bp

BIO to control.

cmd

BIO_CTRL_* (or type‐specific) command code.

larg

Integer/long argument for cmd.

parg

Pointer argument for cmd, or NULL.

Created with MrDocs