SetSignProcessEd25519IdentityFromFile
Bezpečnosť a podpisy
Opis
Načíta certifikát X.509 Ed25519 a súkromný kľúč zo súborov DER a pripojí ich k PDF podpisovému procesu
Syntax
Delphi
Function TPDFlib.SetSignProcessEd25519IdentityFromFile(SignProcessID: Integer; Const CertificateFile, PrivateKeyFile: WideString): Integer;
ActiveX
Function PDFlib::SetSignProcessEd25519IdentityFromFile(SignProcessID As Long, CertificateFile As String, PrivateKeyFile As String) As Long
DLL
int DLSetSignProcessEd25519IdentityFromFile(int InstanceID, int SignProcessID, const wchar_t* CertificateFile, const wchar_t* PrivateKeyFile);
Parametre
| SignProcessID | Value returned by a NewSignProcessFrom* function |
|---|---|
| CertificateFile | Path to a DER-encoded Ed25519 X.509 certificate |
| PrivateKeyFile | Path to a raw 32-byte seed or unencrypted PKCS #8 DER private key |
Návratové hodnoty
| 1 | Both files were read and the identity was attached to the process |
|---|---|
| 0 | A file or process id was invalid |
Poznámky
The DLL also exports DLSetSignProcessEd25519IdentityFromFileA for ANSI pathsThe certificate and private key are held in the sign process, so the source files can be closed or replaced after this call returns
Pozri tiež
SetSignProcessEd25519Identity, SetSignProcessPFXFromFile, SetSignProcessSubFilter