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