diff options
Diffstat (limited to 'crypto/rsa/rsa_depr.c')
-rw-r--r-- | crypto/rsa/rsa_depr.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/crypto/rsa/rsa_depr.c b/crypto/rsa/rsa_depr.c index 21e0562525d0..3cc89b26a99c 100644 --- a/crypto/rsa/rsa_depr.c +++ b/crypto/rsa/rsa_depr.c @@ -1,7 +1,7 @@ /* - * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. * - * Licensed under the OpenSSL license (the "License"). You may not use + * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html @@ -12,17 +12,19 @@ * "new" versions). */ -#include <openssl/opensslconf.h> -#if OPENSSL_API_COMPAT >= 0x00908000L -NON_EMPTY_TRANSLATION_UNIT +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" -#else +#include <openssl/opensslconf.h> -# include <stdio.h> -# include <time.h> -# include "internal/cryptlib.h" -# include <openssl/bn.h> -# include <openssl/rsa.h> +#include <stdio.h> +#include <time.h> +#include "internal/cryptlib.h" +#include <openssl/bn.h> +#include <openssl/rsa.h> RSA *RSA_generate_key(int bits, unsigned long e_value, void (*callback) (int, int, void *), void *cb_arg) @@ -58,4 +60,3 @@ RSA *RSA_generate_key(int bits, unsigned long e_value, BN_GENCB_free(cb); return 0; } -#endif |