AddPublicKeyRecipientFromPFXA

Security and signatures

Description

ANSI variant of AddPublicKeyRecipientFromPFX

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

Syntax

DLL

int DLAddPublicKeyRecipientFromPFXA(int InstanceID, const char* PFXFileName, const char* PFXPassword, int UseMachineKeyset, int Permissions);

Return values

1The recipient certificate was added
0The PFX, password, permissions, or document state was invalid

Remarks

The private key is used only to identify the leaf certificate while adding the recipient and is not embedded in the PDF

The DLL also exports DLAddPublicKeyRecipientFromPFXA for ANSI strings

See also

SetPublicKeyDecryptionPFX, EncryptPublicKey