This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct SecCertificateWrapper : Comparable { | |
var data:Data | |
var cert:SecCertificate | |
// Initialize with a data object from the "DeveloperCertificates" | |
// array (see WrapperImplementation.swift) | |
init(data:Data) { | |
self.cert = SecCertificateCreateWithData(nil, data as CFData)! | |
// Use this later for parsing the date details from the cert |