apple / swift-nio-ssl

TLS Support for SwiftNIO, based on BoringSSL.
https://swiftpackageindex.com/apple/swift-nio-ssl/main/documentation/niossl
Apache License 2.0
393 stars 143 forks source link

Handle error when private key file type is unknown #460

Closed clintonpi closed 7 months ago

clintonpi commented 7 months ago

Motivation:

When the private key file for a TLS configuration has an unknown type, the program crashes. Hence, users are unable to catch the error.

Modifications:

A new error was added to NIOSSLExtraError and the program throws that error instead of crashing.

Result:

The program now throws an error instead of crashing.

glbrntt commented 7 months ago

@swift-server-bot add to allowlist