Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-core
Commits
d95ff26e
Commit
d95ff26e
authored
Aug 01, 2019
by
Cole Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UNSAFE -> WEAK in RSA key environment variable
parent
c817d49d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.travis.yml
.travis.yml
+1
-1
crypto/rsa_common.go
crypto/rsa_common.go
+1
-1
No files found.
.travis.yml
View file @
d95ff26e
...
...
@@ -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"
...
...
crypto/rsa_common.go
View file @
d95ff26e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment