![]() |
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 ActiveX) Example: Crypt2.AddPfxSourceBd methodDemonstrates how to call the AddPfxSourceBd method.
uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB; ... procedure TForm1.Button1Click(Sender: TObject); var crypt: TChilkatCrypt2; success: Integer; bdPfx: TChilkatBinData; pfxPassword: WideString; begin crypt := TChilkatCrypt2.Create(Self); success := 0; // Do public-key decryption (RSA) crypt.CryptAlgorithm := 'pki'; // ... // ... // ... bdPfx := TChilkatBinData.Create(Self); success := bdPfx.LoadFile('c:/my_pfx_files/a.pfx'); // ... pfxPassword := 'secret1'; success := crypt.AddPfxSourceBd(bdPfx.ControlInterface,pfxPassword); if (success = 0) then begin Memo1.Lines.Add(crypt.LastErrorText); Exit; end; // Add as many as PFX sources as desired... success := bdPfx.LoadFile('c:/my_pfx_files/b.pfx'); pfxPassword := 'secret2'; success := crypt.AddPfxSourceBd(bdPfx.ControlInterface,pfxPassword); if (success = 0) then begin Memo1.Lines.Add(crypt.LastErrorText); Exit; end; // ... // ... end; |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.