]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
RSA_SSLV23_PADDING is not available in OpenSSL 3.0
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Oct 2021 17:18:02 +0000 (12:18 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Oct 2021 17:18:02 +0000 (12:18 -0500)
We didn't do anything with it anyway...

src/modules/rlm_cipher/rlm_cipher.c

index 38932f56dd06901fc6df7bc1f35cfef76ed86784..d975eec60e7cc3692efbddbf6d41a11ee0bf5fda 100644 (file)
@@ -95,7 +95,9 @@ static fr_table_num_sorted_t const cipher_rsa_padding[] = {
        { L("none"),    RSA_NO_PADDING          },
        { L("oaep"),    RSA_PKCS1_OAEP_PADDING  },              /* PKCS OAEP padding */
        { L("pkcs"),    RSA_PKCS1_PADDING       },              /* PKCS 1.5 */
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
        { L("ssl"),     RSA_SSLV23_PADDING      },
+#endif
        { L("x931"),    RSA_X931_PADDING        }
 };
 static size_t cipher_rsa_padding_len = NUM_ELEMENTS(cipher_rsa_padding);
@@ -1063,7 +1065,9 @@ static int cipher_rsa_padding_params_set(EVP_PKEY_CTX *evp_pkey_ctx, cipher_rsa_
        switch (rsa_inst->padding) {
        case RSA_NO_PADDING:
        case RSA_X931_PADDING:
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
        case RSA_SSLV23_PADDING:
+#endif
        case RSA_PKCS1_PADDING:
                return 0;