-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Describe the bug
In below code snippet, it seems the else
(line 976) case is missing. Please confirm if it is bug, I can submit PR if required.
poco/NetSSL_OpenSSL/src/Context.cpp
Lines 963 to 978 in 4c2128c
if (keyDHGroup == KEY_DH_GROUP_2048) | |
{ | |
dh->p = BN_bin2bn(dh2048_p, sizeof(dh2048_p), 0); | |
dh->g = BN_bin2bn(dh2048_g, sizeof(dh2048_g), 0); | |
dh->length = 256; | |
} | |
else if (keyDHGroup == KEY_DH_GROUP_1024) | |
{ | |
dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), 0); | |
dh->g = BN_bin2bn(dh1024_g, sizeof(dh1024_g), 0); | |
dh->length = 160; | |
} | |
{ | |
throw Poco::NotImplementedException(Poco::format( | |
"DH Group: %d", static_cast<int>(keyDHGroup))); | |
} |