Read a trusted X.509 certificate (with aux trust info) from a PEM FILE.

Synopsis

Declared in <openssl/pem.h>

X509*
PEM_read_X509_AUX(
    FILE* fp,
    X509** x,
    pem_password_cb* cb,
    void* u);

Return Value

Certificate on success, or NULL on failure.

Parameters

Name

Description

fp

FILE to read from.

x

Optional address of an X509 pointer to reuse, or NULL.

cb

Password callback for encrypted PEM, or NULL.

u

Application data passed to cb.

Created with MrDocs