Sample code for 30+ languages & platforms
Unicode C++

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkEmailW.h>
#include <CkCertW.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkEmailW email;
    CkCertW cert;

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The FindIssuer method is deprecated:

    CkCertW *certObj = email.FindIssuer(cert);
    if (email.get_LastMethodSuccess() == false) {
        wprintf(L"%s\n",email.lastErrorText());
        return;
    }

    //  ...
    //  ...

    delete certObj;

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

    CkCertW issuerCert;
    success = cert.GetIssuer(issuerCert);
    if (success == false) {
        wprintf(L"%s\n",email.lastErrorText());
        return;
    }
    }