Skip to content

Commit f90ac83

Browse files
committed
Fix 5.8 warnings
1 parent 0cd2bb5 commit f90ac83

14 files changed

+34
-13
lines changed

Sources/X509/CertificatePrivateKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@preconcurrency import Crypto
1616
@preconcurrency import _CryptoExtras
17+
import Foundation
1718

1819
extension Certificate {
1920
/// A private key that can be used with a certificate.

Sources/X509/CertificatePublicKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import SwiftASN1
1616
@preconcurrency import Crypto
1717
@preconcurrency import _CryptoExtras
18+
import Foundation
1819

1920
extension Certificate {
2021
/// A public key that can be used with a certificate.

Sources/X509/DistinguishedNameBuilder/CommonName.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the Common Name (CN) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/DistinguishedNameBuilder/CountryName.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the Country Name (C) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/DistinguishedNameBuilder/LocalityName.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the Locality Name (L) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/DistinguishedNameBuilder/OrganizationName.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the Organization Name (O) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/DistinguishedNameBuilder/OrganizationalUnitName.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the Organizational Unit Name (OU) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/DistinguishedNameBuilder/StateOrProvinceName.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the State or Province Name (ST) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/DistinguishedNameBuilder/StreetAddress.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import SwiftASN1
16+
1517
/// Set the Street Address (STREET) of a ``DistinguishedName``.
1618
///
1719
/// This type is used in ``DistinguishedNameBuilder`` contexts.

Sources/X509/OCSP/OCSPPolicy.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ enum OCSPRequestHashAlgorithm {
7777
}
7878
}
7979

80-
public struct OCSPVerifierPolicy<Requester: OCSPRequester>: VerifierPolicy {
80+
public struct OCSPVerifierPolicy<Requester: OCSPRequester>: VerifierPolicy, Sendable {
8181

8282
private var requester: Requester
8383
private var requestHashAlgorithm: OCSPRequestHashAlgorithm
@@ -303,7 +303,7 @@ extension OCSPSingleResponse {
303303
/// - maxDuration: max execution duration in seconds of `operation`
304304
/// - operation: the task to start and cancel after `maxDuration` seconds
305305
/// - Returns: the result of `operation`
306-
private func withTimeout<Result>(
306+
private func withTimeout<Result: Sendable>(
307307
_ maxDuration: TimeInterval,
308308
operation: @escaping @Sendable () async -> Result
309309
) async -> Result {

0 commit comments

Comments
 (0)