// // SPDX-FileCopyrightText: 2016 Marino Faggiana , TWS // SPDX-License-Identifier: GPL-3.0-or-later // #import #import @protocol CCCertificateDelegate @optional - (void)trustedCerticateAccepted; @optional - (void)trustedCerticateDenied; @end @interface CCCertificate : NSObject @property (weak) id delegate; + (CCCertificate *)sharedManager; - (BOOL)checkTrustedChallenge:(NSURLAuthenticationChallenge *)challenge; - (BOOL)acceptCertificate; - (void)saveCertificate:(SecTrustRef)trust withName:(NSString *)certName; - (void)presentViewControllerCertificateWithTitle:(NSString *)title viewController:(UIViewController *)viewController delegate:(id)delegate; @end