AddPublicKeyRecipientFromFile
ความปลอดภัยและลายเซ็น
คำอธิบาย
เพิ่มใบรับรองผู้รับ X.509 จากไฟล์ DER หรือ PEM เข้าเอกสารที่เลือกอยู่ ก่อนการเข้ารหัสด้วยคีย์สาธารณะ
ไวยากรณ์
Delphi
Function TPDFlib.AddPublicKeyRecipientFromFile(Const CertificateFileName: WideString; Permissions: Integer): Integer;
ActiveX
Function PDFlib::AddPublicKeyRecipientFromFile(CertificateFileName As String, Permissions As Long) As Long
DLL
int DLAddPublicKeyRecipientFromFile(int InstanceID, const wchar_t* CertificateFileName, int Permissions);
พารามิเตอร์
| CertificateFileName | พาธไปยังใบรับรอง X.509 เข้ารหัส DER หรือ PEM |
|---|---|
| Permissions | Permission mask returned by EncodePermissions |
ค่าที่ส่งคืน
| 1 | เพิ่มผู้รับแล้ว หรือมีรายการเหมือนกันอยู่ก่อนแล้ว |
|---|---|
| 0 | ใบรับรอง สิทธิ์ หรือสถานะเอกสารไม่ถูกต้อง |
หมายเหตุ
ผู้รับที่มีสิทธิ์เดียวกันจะใช้ซอง CMS ซองเดียวกัน ส่วนมาสก์สิทธิ์ที่ต่างกันจะแยกเป็นกลุ่มซองของตัวเอง DLL ยังส่งออก
DLAddPublicKeyRecipientFromFileA for ANSI paths
ดูเพิ่มเติม
AddPublicKeyRecipientFromPFX, AddPublicKeyRecipientFromStore, EncryptPublicKey