(Visual FoxPro) Example: Crypt2.AddPfxSourceFile method
Demonstrates how to call the AddPfxSourceFile method.
LOCAL loCrypt
LOCAL lnSuccess
LOCAL lcPfxPath
LOCAL lcPfxPassword
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Crypt2')
loCrypt = CreateObject('Chilkat.Crypt2')
lnSuccess = 0
* Do public-key decryption (RSA)
loCrypt.CryptAlgorithm = "pki"
* ...
* ...
* ...
lcPfxPath = "c:/my_pfx_files/a.pfx"
lcPfxPassword = "secret1"
lnSuccess = loCrypt.AddPfxSourceFile(lcPfxPath,lcPfxPassword)
IF (lnSuccess = 0) THEN
? loCrypt.LastErrorText
RELEASE loCrypt
CANCEL
ENDIF
* Add as many as PFX sources as desired...
lcPfxPath = "c:/my_pfx_files/b.pfx"
lcPfxPassword = "secret2"
lnSuccess = loCrypt.AddPfxSourceFile(lcPfxPath,lcPfxPassword)
IF (lnSuccess = 0) THEN
? loCrypt.LastErrorText
RELEASE loCrypt
CANCEL
ENDIF
* ...
* ...
RELEASE loCrypt
|