![]() |
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
(Unicode C) Transition from Email.FindIssuer to Cert.GetIssuerProvides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer. Note: This example requires Chilkat v11.0.0 or greater.
#include <C_CkEmailW.h> #include <C_CkCertW.h> void ChilkatSample(void) { HCkEmailW email; HCkCertW cert; HCkCertW certObj; HCkCertW issuerCert; BOOL success; email = CkEmailW_Create(); cert = CkCertW_Create(); // ... // ... // ------------------------------------------------------------------------ // The FindIssuer method is deprecated: certObj = CkEmailW_FindIssuer(email,cert); if (CkEmailW_getLastMethodSuccess(email) == FALSE) { wprintf(L"%s\n",CkEmailW_lastErrorText(email)); CkEmailW_Dispose(email); CkCertW_Dispose(cert); return; } // ... // ... CkCertW_Dispose(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. issuerCert = CkCertW_Create(); success = CkCertW_GetIssuer(cert,issuerCert); if (success == FALSE) { wprintf(L"%s\n",CkEmailW_lastErrorText(email)); CkEmailW_Dispose(email); CkCertW_Dispose(cert); CkCertW_Dispose(issuerCert); return; } CkEmailW_Dispose(email); CkCertW_Dispose(cert); CkCertW_Dispose(issuerCert); } |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.