Xojo Plugin
Xojo Plugin
Transition from Imap.GetSslServerCert to Imap.GetServerCert
Provides instructions for replacing deprecated GetSslServerCert method calls with GetServerCert.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim imap As New Chilkat.Imap
// ...
// ...
// ------------------------------------------------------------------------
// The GetSslServerCert method is deprecated:
Dim certObj As Chilkat.Cert
certObj = imap.GetSslServerCert()
If (imap.LastMethodSuccess = False) Then
System.DebugLog(imap.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetServerCert.
// Your application creates a new, empty Cert object which is passed
// in the last argument and filled upon success.
Dim cert As New Chilkat.Cert
success = imap.GetServerCert(cert)
If (success = False) Then
System.DebugLog(imap.LastErrorText)
Return
End If