Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
6dced6d9
Commit
6dced6d9
authored
May 22, 2011
by
Robert Hencke
Committed by
Rob Pike
May 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/x509: fix incorrect prints found by govet
R=golang-dev, r CC=golang-dev
https://golang.org/cl/4526073
parent
f4fe688b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/pkg/crypto/x509/x509_test.go
src/pkg/crypto/x509/x509_test.go
+3
-3
No files found.
src/pkg/crypto/x509/x509_test.go
View file @
6dced6d9
...
...
@@ -313,7 +313,7 @@ func TestParseCertificateWithDSASignatureAlgorithm(t *testing.T) {
pemBlock
,
_
:=
pem
.
Decode
([]
byte
(
dsaCertPem
))
cert
,
err
:=
ParseCertificate
(
pemBlock
.
Bytes
)
if
err
!=
nil
{
t
.
Fatal
(
"Failed to parse certificate: %s"
,
err
)
t
.
Fatal
f
(
"Failed to parse certificate: %s"
,
err
)
}
if
cert
.
SignatureAlgorithm
!=
DSAWithSHA1
{
t
.
Errorf
(
"Parsed signature algorithm was not DSAWithSHA1"
)
...
...
@@ -324,10 +324,10 @@ func TestVerifyCertificateWithDSASignature(t *testing.T) {
pemBlock
,
_
:=
pem
.
Decode
([]
byte
(
dsaCertPem
))
cert
,
err
:=
ParseCertificate
(
pemBlock
.
Bytes
)
if
err
!=
nil
{
t
.
Fatal
(
"Failed to parse certificate: %s"
,
err
)
t
.
Fatal
f
(
"Failed to parse certificate: %s"
,
err
)
}
// test cert is self-signed
if
err
=
cert
.
CheckSignatureFrom
(
cert
);
err
!=
nil
{
t
.
Fatal
(
"DSA Certificate verfication failed: %s"
,
err
)
t
.
Fatal
f
(
"DSA Certificate verfication failed: %s"
,
err
)
}
}
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