-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenSSL 3.0 marked many RSA functions as "deprecated"; tarsnap uses some of them[1] in: lib/crypto/crypto_compat.c lib/crypto/crypto_keys.c lib/crypto/crypto_keys_subr.c lib/crypto/crypto_rsa.c Those files are now being compiled into a new libtarsnap_rsa.a, which uses the appropriate compiler flags. [1] List of relevant deprecated OpenSSL 3.0 RSA functions: RSAPublicKey_dup RSA_bits RSA_free RSA_generate_key_ex RSA_get0_crt_params RSA_get0_factors RSA_get0_key RSA_new RSA_private_decrypt RSA_private_encrypt RSA_public_decrypt RSA_public_encrypt RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_size
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
libcperciva/apisupport/Build/apisupport-LIBCRYPTO-LOW_LEVEL_RSA.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <openssl/rsa.h> | ||
|
||
int | ||
main(void) | ||
{ | ||
RSA * rsa; | ||
|
||
/* Allocate and free a RSA key. */ | ||
rsa = RSA_new(); | ||
RSA_free(rsa); | ||
|
||
/* Success! */ | ||
return (0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters