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

Name

Description

algs

Address of the stack to create or extend (may point to NULL).

algnid

Algorithm NID for the capability (cipher or similar).

keysize

Optional key‐size parameter in bits; if <= 0, no parameter is included.

Created with MrDocs