Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p-quic-transport
Commits
8b63b936
Commit
8b63b936
authored
Aug 31, 2018
by
Marten Seemann
Browse files
run Go 1.11 gofmt, use Go 1.10.x and 1.11.x on Travis
parent
8fde809f
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
8b63b936
language
:
go
language
:
go
go
:
go
:
-
"
1.9.x"
-
"
1.10.x"
-
"
1.10.x"
-
"
1.11.x"
# first part of the GOARCH workaround
# first part of the GOARCH workaround
# setting the GOARCH directly doesn't work, since the value will be overwritten later
# setting the GOARCH directly doesn't work, since the value will be overwritten later
...
...
crypto.go
View file @
8b63b936
...
@@ -80,10 +80,10 @@ func keyToCertificate(sk ic.PrivKey) (interface{}, *x509.Certificate, error) {
...
@@ -80,10 +80,10 @@ func keyToCertificate(sk ic.PrivKey) (interface{}, *x509.Certificate, error) {
return
nil
,
nil
,
err
return
nil
,
nil
,
err
}
}
tmpl
:=
&
x509
.
Certificate
{
tmpl
:=
&
x509
.
Certificate
{
SerialNumber
:
sn
,
SerialNumber
:
sn
,
NotBefore
:
time
.
Now
()
.
Add
(
-
24
*
time
.
Hour
),
NotBefore
:
time
.
Now
()
.
Add
(
-
24
*
time
.
Hour
),
NotAfter
:
time
.
Now
()
.
Add
(
certValidityPeriod
),
NotAfter
:
time
.
Now
()
.
Add
(
certValidityPeriod
),
IsCA
:
true
,
IsCA
:
true
,
BasicConstraintsValid
:
true
,
BasicConstraintsValid
:
true
,
}
}
...
...
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