(AutoIt) Transition from Email.FindIssuer to Cert.GetIssuer
Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer. Note: This example requires Chilkat v11.0.0 or greater.
$oEmail = ObjCreate("Chilkat.Email")
$oCert = ObjCreate("Chilkat.Cert")
; ...
; ...
; ------------------------------------------------------------------------
; The FindIssuer method is deprecated:
Local $oCertObj = $oEmail.FindIssuer($oCert)
If ($oEmail.LastMethodSuccess = False) Then
ConsoleWrite($oEmail.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using Cert.GetIssuer.
; Your application creates a new, empty Cert object which is passed
; in the last argument and filled upon success.
$oIssuerCert = ObjCreate("Chilkat.Cert")
Local $bSuccess = $oCert.GetIssuer($oIssuerCert)
If ($bSuccess = False) Then
ConsoleWrite($oEmail.LastErrorText & @CRLF)
Exit
EndIf
|