Skip to content

Commit

Permalink
Remove SSL23 support from Poco/Crypto
Browse files Browse the repository at this point in the history
As per OpenSSL 3 (since alpha 13), the support of SSL23 has been removed
(openssl/openssl#14248).

Reference: pocoproject#3223
  • Loading branch information
Laurent Stacul committed Mar 16, 2021
1 parent 3fc3e5f commit 8a05b67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Crypto/include/Poco/Crypto/Crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ enum RSAPaddingMode
/// EME-OAEP as defined in PKCS #1 v2.0 with SHA-1, MGF1 and an empty
/// encoding parameter. This mode is recommended for all new applications.

RSA_PADDING_SSLV23,
/// PKCS #1 v1.5 padding with an SSL-specific modification that denotes
/// that the server is SSL3 capable.

RSA_PADDING_NONE
/// Raw RSA encryption. This mode should only be used to implement cryptographically
/// sound padding modes in the application code. Encrypting user data directly with RSA
Expand Down
3 changes: 0 additions & 3 deletions Crypto/src/RSACipherImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ namespace
return RSA_PKCS1_PADDING;
case RSA_PADDING_PKCS1_OAEP:
return RSA_PKCS1_OAEP_PADDING;
case RSA_PADDING_SSLV23:
return RSA_SSLV23_PADDING;
case RSA_PADDING_NONE:
return RSA_NO_PADDING;
default:
Expand Down Expand Up @@ -116,7 +114,6 @@ namespace
switch (_paddingMode)
{
case RSA_PADDING_PKCS1:
case RSA_PADDING_SSLV23:
size -= 11;
break;
case RSA_PADDING_PKCS1_OAEP:
Expand Down

0 comments on commit 8a05b67

Please sign in to comment.