diff --git a/Makefile.am b/Makefile.am index 48588b55..e65f284b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,6 +14,7 @@ noinst_LIBRARIES= \ lib/libcperciva_rdrand.a \ lib/libcperciva_shani.a \ lib/libtarsnap.a \ + lib/libtarsnap_rsa.a \ lib/libtarsnap_sse2.a \ libarchive/libarchive.a bin_PROGRAMS= \ @@ -124,17 +125,13 @@ lib_libtarsnap_a_SOURCES= \ lib-platform/util/ts_getfstype.c \ lib-platform/util/ts_getfstype.h \ lib/crypto/crypto.h \ - lib/crypto/crypto_compat.c \ lib/crypto/crypto_compat.h \ lib/crypto/crypto_file.c \ lib/crypto/crypto_hash.c \ lib/crypto/crypto_internal.h \ - lib/crypto/crypto_keys.c \ lib/crypto/crypto_keys_init.c \ lib/crypto/crypto_keys_server.c \ - lib/crypto/crypto_keys_subr.c \ lib/crypto/crypto_passwd_to_dh.c \ - lib/crypto/crypto_rsa.c \ lib/crypto/crypto_scrypt_smix.c \ lib/crypto/crypto_scrypt_smix.h \ lib/crypto/crypto_scrypt_smix_sse2.h \ @@ -422,6 +419,15 @@ nodist_lib_libcperciva_cpusupport_detect_a_SOURCES= \ lib_libcperciva_cpusupport_detect_a_CPPFLAGS=$(lib_libtarsnap_a_CPPFLAGS) LIBTARSNAP_A+= lib/libcperciva_cpusupport_detect.a +lib_libtarsnap_rsa_a_SOURCES= \ + lib/crypto/crypto_compat.c \ + lib/crypto/crypto_keys.c \ + lib/crypto/crypto_keys_subr.c \ + lib/crypto/crypto_rsa.c +lib_libtarsnap_rsa_a_CPPFLAGS=$(lib_libtarsnap_a_CPPFLAGS) +lib_libtarsnap_rsa_a_CFLAGS=`. ./apisupport-config.h; echo $${CFLAGS_LIBCRYPTO_LOW_LEVEL_RSA}` +LIBTARSNAP_A+= lib/libtarsnap_rsa.a + # # diff --git a/libcperciva/apisupport/Build/apisupport-LIBCRYPTO-LOW_LEVEL_RSA.c b/libcperciva/apisupport/Build/apisupport-LIBCRYPTO-LOW_LEVEL_RSA.c new file mode 100644 index 00000000..9dc63db5 --- /dev/null +++ b/libcperciva/apisupport/Build/apisupport-LIBCRYPTO-LOW_LEVEL_RSA.c @@ -0,0 +1,14 @@ +#include + +int +main(void) +{ + RSA * rsa; + + /* Allocate and free a RSA key. */ + rsa = RSA_new(); + RSA_free(rsa); + + /* Success! */ + return (0); +} diff --git a/libcperciva/apisupport/Build/apisupport.sh b/libcperciva/apisupport/Build/apisupport.sh index aedd5662..84a9f016 100755 --- a/libcperciva/apisupport/Build/apisupport.sh +++ b/libcperciva/apisupport/Build/apisupport.sh @@ -83,3 +83,5 @@ feature LIBSSL HOST_NAME "-lssl" "" \ "-Wno-cast-qual" feature LIBCRYPTO LOW_LEVEL_AES "-lcrypto" "" \ "-Wno-deprecated-declarations" +feature LIBCRYPTO LOW_LEVEL_RSA "-lcrypto" "" \ + "-Wno-deprecated-declarations"