Skip to content

Commit 3c65fa8

Browse files
committed
an initializer would be a good idea
1 parent fe4bc21 commit 3c65fa8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/X509/CertificatePrivateKey.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ extension Certificate {
9191
}
9292
#endif
9393

94+
/// Construct a private key wrapping a custom private key.
95+
/// - Parameter custom: The custom private key to wrap.
96+
@inlinable
97+
public init(_ custom: some CustomPrivateKey) {
98+
self.backing = .custom(custom)
99+
}
100+
94101
/// Use the private key to sign the provided bytes with a given signature algorithm.
95102
///
96103
/// - Parameters:

0 commit comments

Comments
 (0)