AddPublicKeyRecipientFromFileA

Security and signatures

Description

ANSI variant of AddPublicKeyRecipientFromFile

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

DLL

int DLAddPublicKeyRecipientFromFileA(int InstanceID, const char* CertificateFileName, int Permissions);

Return values

1The recipient was added or an identical entry was already present
0The certificate, permissions, or document state was invalid

Remarks

Recipients with the same permissions share one CMS envelope, while different permission masks create separate envelope groups

The DLL also exports DLAddPublicKeyRecipientFromFileA for ANSI paths

See also

AddPublicKeyRecipientFromPFX, AddPublicKeyRecipientFromStore, EncryptPublicKey