AddPublicKeyRecipientFromStore

Ασφάλεια και υπογραφές

Περιγραφή

Προσθέτει πιστοποιητικό X.509 από Windows certificate store ως παραλήπτη κρυπτογράφησης δημόσιου κλειδιού

Σύνταξη

Delphi

Function TPDFlib.AddPublicKeyRecipientFromStore(Const StoreName, CertificateName: WideString; UseMachineStore, Permissions: Integer): Integer;

ActiveX

Function PDFlib::AddPublicKeyRecipientFromStore(StoreName As String, CertificateName As String, UseMachineStore As Long, Permissions As Long) As Long

DLL

int DLAddPublicKeyRecipientFromStore(int InstanceID, const wchar_t* StoreName, const wchar_t* CertificateName, int UseMachineStore, int Permissions);

Παράμετροι

StoreNameΌνομα του Windows Certificate Store, όπως MY
CertificateNameΑπλό εμφανιζόμενο όνομα case-insensitive, ή κενή συμβολοσειρά για επιλογή του πρώτου πιστοποιητικού
UseMachineStoreΧρησιμοποιήστε μη μηδενική τιμή για το store τοπικής μηχανής ή μηδέν για το store τρέχοντος χρήστη
PermissionsPermission mask returned by EncodePermissions

Τιμές επιστροφής

1Το πιστοποιητικό παραλήπτη προστέθηκε
0Το store, το πιστοποιητικό, τα δικαιώματα ή η κατάσταση εγγράφου ήταν άκυρα

Παρατηρήσεις

The DLL also exports DLAddPublicKeyRecipientFromStoreA for ANSI strings

Δείτε επίσης

SetPublicKeyDecryptionStore, EncryptPublicKey