![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Delphi DLL) Example: Crypt2.AddPfxSourceFile methodDemonstrates how to call the AddPfxSourceFile method.
uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Crypt2; ... procedure TForm1.Button1Click(Sender: TObject); var crypt: HCkCrypt2; success: Boolean; pfxPath: PWideChar; pfxPassword: PWideChar; begin crypt := CkCrypt2_Create(); success := False; // Do public-key decryption (RSA) CkCrypt2_putCryptAlgorithm(crypt,'pki'); // ... // ... // ... pfxPath := 'c:/my_pfx_files/a.pfx'; pfxPassword := 'secret1'; success := CkCrypt2_AddPfxSourceFile(crypt,pfxPath,pfxPassword); if (success = False) then begin Memo1.Lines.Add(CkCrypt2__lastErrorText(crypt)); Exit; end; // Add as many as PFX sources as desired... pfxPath := 'c:/my_pfx_files/b.pfx'; pfxPassword := 'secret2'; success := CkCrypt2_AddPfxSourceFile(crypt,pfxPath,pfxPassword); if (success = False) then begin Memo1.Lines.Add(CkCrypt2__lastErrorText(crypt)); Exit; end; // ... // ... CkCrypt2_Dispose(crypt); end; |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.