Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 44e00e3

Browse files
authored
Update to v1.1.7
1 parent ae41549 commit 44e00e3

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#import <openssl/x509.h>
2+
#import <openssl/ssl.h>
3+
#import <openssl/err.h>
4+
#import <openssl/crypto.h>

Sources/prostore/certificates/certificates.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import Foundation
55
import Security
66
import CryptoKit
7-
import OpenSSL
87

98
public 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)

project.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2121
targets:
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

0 commit comments

Comments
 (0)