mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-14 08:52:42 +08:00
Fix availability guards
This commit is contained in:
parent
97712101f0
commit
6eb1e0c930
@ -80,7 +80,7 @@ import Foundation
|
|||||||
/// not being recognized or not matching the configured one; not being able to verify a certificate's signature against the given
|
/// not being recognized or not matching the configured one; not being able to verify a certificate's signature against the given
|
||||||
/// private key; etc), then that attempt will be aborted but the service will keep on trying at the configured interval.
|
/// private key; etc), then that attempt will be aborted but the service will keep on trying at the configured interval.
|
||||||
/// The last-valid certificate-key pair (if any) will be returned as the ``sslContextConfigurationOverride``.
|
/// The last-valid certificate-key pair (if any) will be returned as the ``sslContextConfigurationOverride``.
|
||||||
@available(macOS 13, iOS 14, tvOS 14, watchOS 7, *)
|
@available(macOS 13, iOS 16, watchOS 9, tvOS 16, macCatalyst 16, visionOS 1.0, *)
|
||||||
public struct TimedCertificateReloader: CertificateReloader {
|
public struct TimedCertificateReloader: CertificateReloader {
|
||||||
/// The encoding for the certificate or the key.
|
/// The encoding for the certificate or the key.
|
||||||
public struct Encoding: Sendable, Equatable {
|
public struct Encoding: Sendable, Equatable {
|
||||||
@ -396,5 +396,5 @@ public struct TimedCertificateReloader: CertificateReloader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(macOS 13, iOS 14, tvOS 14, watchOS 7, *)
|
@available(macOS 13, iOS 16, watchOS 9, tvOS 16, macCatalyst 16, visionOS 1.0, *)
|
||||||
extension TimedCertificateReloader: Service {}
|
extension TimedCertificateReloader: Service {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user