Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Crypt2.GetSignerCert to Crypt2.LastSignerCert
Provides instructions for replacing deprecated GetSignerCert method calls with LastSignerCert.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oCrypt2
LOCAL nIndex
LOCAL oCertObj
LOCAL oCertOut
nSuccess := 0
oCrypt2 := CreateObject("Chilkat.Crypt2")
// ...
// ...
nIndex := 0
// ------------------------------------------------------------------------
// The GetSignerCert method is deprecated:
oCertObj := oCrypt2:GetSignerCert(nIndex)
IF (oCrypt2:LastMethodSuccess == 0)
? oCrypt2:LastErrorText
oCrypt2:destroy()
RETURN
ENDIF
// ...
// ...
oCertObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using LastSignerCert.
// Your application creates a new, empty Cert object which is passed
// in the last argument and filled upon success.
oCertOut := CreateObject("Chilkat.Cert")
nSuccess := oCrypt2:LastSignerCert(nIndex, oCertOut)
IF (nSuccess == 0)
? oCrypt2:LastErrorText
oCrypt2:destroy()
oCertOut:destroy()
RETURN
ENDIF
oCrypt2:destroy()
oCertOut:destroy()