Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
b2654704
Commit
b2654704
authored
Jan 16, 2018
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/pkcs1-conv.c: Add missing break statements.
(cherry picked from commit
20c7ba59
)
parent
3df5ec89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
ChangeLog
ChangeLog
+5
-0
tools/pkcs1-conv.c
tools/pkcs1-conv.c
+9
-17
No files found.
ChangeLog
View file @
b2654704
2018-01-16 Niels Möller <nisse@lysator.liu.se>
Backported from master branch.
* tools/pkcs1-conv.c (convert_file): Add missing break statements.
2018-10-10 Niels Möller <nisse@lysator.liu.se>
Backported from master branch.
...
...
tools/pkcs1-conv.c
View file @
b2654704
...
...
@@ -563,28 +563,20 @@ convert_file(struct nettle_buffer *buffer,
{
case
10
:
if
(
memcmp
(
marker
,
"PUBLIC KEY"
,
10
)
==
0
)
{
type
=
GENERAL_PUBLIC_KEY
;
break
;
}
type
=
GENERAL_PUBLIC_KEY
;
break
;
case
14
:
if
(
memcmp
(
marker
,
"RSA PUBLIC KEY"
,
14
)
==
0
)
{
type
=
RSA_PUBLIC_KEY
;
break
;
}
type
=
RSA_PUBLIC_KEY
;
break
;
case
15
:
if
(
memcmp
(
marker
,
"RSA PRIVATE KEY"
,
15
)
==
0
)
{
type
=
RSA_PRIVATE_KEY
;
break
;
}
if
(
memcmp
(
marker
,
"DSA PRIVATE KEY"
,
15
)
==
0
)
{
type
=
DSA_PRIVATE_KEY
;
break
;
}
type
=
RSA_PRIVATE_KEY
;
else
if
(
memcmp
(
marker
,
"DSA PRIVATE KEY"
,
15
)
==
0
)
type
=
DSA_PRIVATE_KEY
;
break
;
}
if
(
!
type
)
...
...
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