Objective-C
Objective-C
Transition from MailMan.GetPop3SslServerCert to MailMan.GetServerCert
Provides instructions for replacing deprecated GetPop3SslServerCert method calls with GetServerCert.Chilkat Objective-C Downloads
#import <CkoMailMan.h>
#import <CkoCert.h>
BOOL success = NO;
CkoMailMan *mailman = [[CkoMailMan alloc] init];
// ...
// ...
// ------------------------------------------------------------------------
// The GetPop3SslServerCert method is deprecated:
CkoCert *certObj = [mailman GetPop3SslServerCert];
if (mailman.LastMethodSuccess == NO) {
NSLog(@"%@",mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetServerCert.
// Your application creates a new, empty Cert object which is passed
// in the last argument and filled upon success.
// We want the POP3 email server certificate..
BOOL useSmtp = NO;
CkoCert *certOut = [[CkoCert alloc] init];
success = [mailman GetServerCert: useSmtp cert: certOut];
if (success == NO) {
NSLog(@"%@",mailman.LastErrorText);
return;
}