CMS_add_simple_smimecap

Append one S/MIME capability AlgorithmIdentifier to a stack.

Synopsis

Declared in <openssl/cms.h>

int
CMS_add_simple_smimecap(
    stack_st_X509_ALGOR** algs,
    int algnid,
    int keysize);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
algsAddress of the stack to create or extend (may point to NULL).
algnidAlgorithm NID for the capability (cipher or similar).
keysizeOptional key-size parameter in bits; if <= 0, no parameter is included.