mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
fix(Socket): shutdown fixes from pull #3448
This commit is contained in:
@@ -126,6 +126,16 @@ public:
|
||||
PROTO_TLSV1_3 = 0x20
|
||||
};
|
||||
|
||||
enum SecurityLevel
|
||||
{
|
||||
SECURITY_LEVEL_NONE = 0,
|
||||
SECURITY_LEVEL_80_BITS = 1,
|
||||
SECURITY_LEVEL_112_BITS = 2,
|
||||
SECURITY_LEVEL_128_BITS = 3,
|
||||
SECURITY_LEVEL_192_BITS = 4,
|
||||
SECURITY_LEVEL_256_BITS = 5
|
||||
};
|
||||
|
||||
struct NetSSL_API Params
|
||||
{
|
||||
Params();
|
||||
@@ -193,6 +203,11 @@ public:
|
||||
/// and other TLSv1.3 ephemeral key negotiation, based
|
||||
/// on the group names defined by OpenSSL. Defaults to
|
||||
/// "X448:X25519:ffdhe4096:ffdhe3072:ffdhe2048:ffdhe6144:ffdhe8192:P-521:P-384:P-256"
|
||||
|
||||
SecurityLevel securityLevel;
|
||||
/// Defines minimal number of security bits allowed.
|
||||
/// Requires OpenSSL >= 1.1 to be effective.
|
||||
|
||||
};
|
||||
|
||||
using InvalidCertificateHandlerPtr = Poco::SharedPtr<InvalidCertificateHandler>;
|
||||
@@ -420,6 +435,9 @@ public:
|
||||
/// Returns the InvalidCertificateHandler set for this Context,
|
||||
/// or a null pointer if none has been set.
|
||||
|
||||
void setSecurityLevel(SecurityLevel level);
|
||||
/// Sets the security level.
|
||||
|
||||
private:
|
||||
void init(const Params& params);
|
||||
/// Initializes the Context with the given parameters.
|
||||
|
||||
Reference in New Issue
Block a user