![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Tcl) Transition from Email.GetSignedByCertChain to Email.LastSignerCertProvides instructions for replacing deprecated GetSignedByCertChain method calls with LastSignerCert. Note: This example requires Chilkat v11.0.0 or greater.
load ./chilkat.dll set email [new_CkEmail] # ... # ... # ------------------------------------------------------------------------ # The GetSignedByCertChain method is deprecated: # certChainObj is a CkCertChain set certChainObj [CkEmail_GetSignedByCertChain $email] if {[CkEmail_get_LastMethodSuccess $email] == 0} then { puts [CkEmail_lastErrorText $email] delete_CkEmail $email exit } # ... # ... delete_CkCertChain $certChainObj # ------------------------------------------------------------------------ # Do the equivalent using LastSignerCert to get the signing certificate, # then build the cert chain from the signing certificate object. set signerCert [new_CkCert] set success [CkEmail_LastSignerCert $email 0 $signerCert] if {$success == 0} then { puts [CkEmail_lastErrorText $email] delete_CkEmail $email delete_CkCert $signerCert exit } # Get the certificate chain from the signer certificate. set certChain [new_CkCertChain] set success [CkCert_BuildCertChain $signerCert $certChain] if {$success == 0} then { puts [CkCert_lastErrorText $signerCert] delete_CkEmail $email delete_CkCert $signerCert delete_CkCertChain $certChain exit } delete_CkEmail $email delete_CkCert $signerCert delete_CkCertChain $certChain |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.