EVP_EncodeFinal

Flush remaining Base64-encoded output from an encode context.

Synopsis

Declared in <openssl/evp.h>

void
EVP_EncodeFinal(
    EVP_ENCODE_CTX* ctx,
    unsigned char* out,
    int* outl);

Parameters

NameDescription
ctxEncode context previously used with EVP_EncodeUpdate().
outBuffer receiving the final encoded bytes (and trailing newline when applicable).
outlReceives the number of bytes written to out.