From d95ff26e5e90ad3f6500745fbd2f4e23ed48173c Mon Sep 17 00:00:00 2001 From: Cole Brown Date: Thu, 1 Aug 2019 13:57:48 -0400 Subject: [PATCH] UNSAFE -> WEAK in RSA key environment variable --- .travis.yml | 2 +- crypto/rsa_common.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a93d5a4..58c376b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ go: env: global: - BUILD_DEPTYPE=gomod - - LIBP2P_ALLOW_UNSAFE_RSA_KEYS=1 + - LIBP2P_ALLOW_WEAK_RSA_KEYS=1 matrix: - GOTFLAGS="-race" - GOTFLAGS="-race -tags=openssl" diff --git a/crypto/rsa_common.go b/crypto/rsa_common.go index 89ae51c..9293159 100644 --- a/crypto/rsa_common.go +++ b/crypto/rsa_common.go @@ -8,7 +8,7 @@ import ( // UnsafeRsaKeyEnv is an environment variable which, when set, lowers the // minimum required bits of RSA keys to 512. This should be used exclusively in // test situations. -const UnsafeRsaKeyEnv = "LIBP2P_ALLOW_UNSAFE_RSA_KEYS" +const UnsafeRsaKeyEnv = "LIBP2P_ALLOW_WEAK_RSA_KEYS" var MinRsaKeyBits = 2048