Sample code for 30+ languages & platforms
Tcl

Transition from Email.GetSignedByCert to Email.LastSignerCert

Provides instructions for replacing deprecated GetSignedByCert method calls with LastSignerCert.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

set email [new_CkEmail]

# ...
# ...

# ------------------------------------------------------------------------
# The GetSignedByCert method is deprecated:

# certObj is a CkCert
set certObj [CkEmail_GetSignedByCert $email]
if {[CkEmail_get_LastMethodSuccess $email] == 0} then {
    puts [CkEmail_lastErrorText $email]
    delete_CkEmail $email
    exit
}

# ...
# ...

delete_CkCert $certObj

# ------------------------------------------------------------------------
# Do the equivalent using LastSignerCert.
# Your application creates a new, empty Cert object which is passed 
# in the last argument and filled upon success.

set certOut [new_CkCert]

set success [CkEmail_LastSignerCert $email 0 $certOut]
if {$success == 0} then {
    puts [CkEmail_lastErrorText $email]
    delete_CkEmail $email
    delete_CkCert $certOut
    exit
}


delete_CkEmail $email
delete_CkCert $certOut