This repository was archived by the owner on Mar 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #import < openssl/x509.h>
2+ #import < openssl/ssl.h>
3+ #import < openssl/err.h>
4+ #import < openssl/crypto.h>
Original file line number Diff line number Diff line change 44import Foundation
55import Security
66import CryptoKit
7- import OpenSSL
87
98public enum CertificateCheckResult {
109 case incorrectPassword
@@ -37,8 +36,8 @@ public final class CertificatesManager {
3736 var cfErr : Unmanaged < CFError > ?
3837 guard let keyData = SecKeyCopyExternalRepresentation ( secKey, & cfErr) as Data ? else {
3938 if let cfError = cfErr? . takeRetainedValue ( ) {
40- // Fixed: Force cast CFError to NSError
41- let nsError = cfError as! NSError
39+ // Fixed: Remove force casting CFError to NSError
40+ let nsError = cfError as NSError
4241 throw CertificateError . publicKeyExportFailed ( OSStatus ( nsError. code) )
4342 } else {
4443 throw CertificateError . publicKeyExportFailed ( - 1 )
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ packages:
1515 url : https://github.com/weichsel/ZIPFoundation.git
1616 branch : main
1717 OpenSSL :
18- url : https://github.com/krzyzanowskim/OpenSSL
19- from : 3.3.2000 # Latest stable version as of 2025, supports iOS
18+ url : https://github.com/krzyzanowskim/OpenSSL.git
19+ from : 3.3.2000
2020
2121targets :
2222 prostore :
@@ -28,6 +28,7 @@ targets:
2828 settings :
2929 IPHONEOS_DEPLOYMENT_TARGET : " 15.0"
3030 ASSETCATALOG_COMPILER_APPICON_NAME : " AppIcon"
31+ SWIFT_OBJC_BRIDGING_HEADER : " Sources/prostore/ProStore-Bridging-Header.h"
3132 info :
3233 path : " Info.plist"
3334 properties :
@@ -47,4 +48,4 @@ targets:
4748 - package : ZIPFoundation
4849 product : ZIPFoundation
4950 - package : OpenSSL
50- product : OpenSSL # Link OpenSSL module
51+ product : OpenSSL
You can’t perform that action at this time.
0 commit comments