Send a cipher‐specific control request to an EVP_CIPHER_CTX.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_ctrl(
    EVP_CIPHER_CTX* ctx,
    int type,
    int arg,
    void* ptr);

Return Value

1 on success, <=0 on failure (command‐specific).

Parameters

Name

Description

ctx

Cipher context to control.

type

EVP_CTRL_* command code.

arg

Integer argument for type.

ptr

Pointer argument for type, or NULL.

Created with MrDocs