(Xojo Plugin) Transition from Cert.ExportPublicKey to Cert.GetPublicKey
Provides instructions for replacing deprecated ExportPublicKey method calls with GetPublicKey. Note: This example requires Chilkat v11.0.0 or greater.
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
Dim success As Boolean
success = cert.GetPublicKey(publickeyOut)
If (success = False) Then
System.DebugLog(cert.LastErrorText)
Return
End If
|