diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-01-21 16:37:26 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-01-25 10:20:48 +0100 |
commit | c27e7922211ac4f7aee5573f605c3b3cbef0d0bc (patch) | |
tree | 19a4376c5ce7743f00fab58e894d2692e3da9fdd /crypto/rsa | |
parent | c9603dfa42d0643a6c8cac3e14364d9fd63303c4 (diff) |
bn: Deprecate the X9.31 RSA key generation related functions
This key generation method is obsolete.
Fixes #10111
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13921)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/build.info | 5 | ||||
-rw-r--r-- | crypto/rsa/rsa_x931g.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/crypto/rsa/build.info b/crypto/rsa/build.info index 1614996049..d97e07fa4c 100644 --- a/crypto/rsa/build.info +++ b/crypto/rsa/build.info @@ -2,7 +2,7 @@ LIBS=../../libcrypto $COMMON=rsa_ossl.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_pk1.c \ rsa_none.c rsa_oaep.c rsa_chk.c rsa_pss.c rsa_x931.c rsa_crpt.c \ - rsa_x931g.c rsa_sp800_56b_gen.c rsa_sp800_56b_check.c rsa_backend.c \ + rsa_sp800_56b_gen.c rsa_sp800_56b_check.c rsa_backend.c \ rsa_mp_names.c rsa_schemes.c SOURCE[../../libcrypto]=$COMMON\ @@ -11,6 +11,9 @@ SOURCE[../../libcrypto]=$COMMON\ IF[{- !$disabled{'deprecated-0.9.8'} -}] SOURCE[../../libcrypto]=rsa_depr.c ENDIF +IF[{- !$disabled{'deprecated-3.0'} -}] + SOURCE[../../libcrypto]=rsa_x931g.c +ENDIF SOURCE[../../providers/libfips.a]=$COMMON diff --git a/crypto/rsa/rsa_x931g.c b/crypto/rsa/rsa_x931g.c index 211e717871..6c50bd9593 100644 --- a/crypto/rsa/rsa_x931g.c +++ b/crypto/rsa/rsa_x931g.c @@ -11,7 +11,7 @@ * RSA low level APIs are deprecated for public use, but still ok for * internal use. */ -#include "internal/deprecated.h" +#define OPENSSL_SUPPRESS_DEPRECATED #include <stdio.h> #include <string.h> |