Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
ef97526d
Commit
ef97526d
authored
Aug 16, 2016
by
Niels Möller
Browse files
Fix signedness warning in rsa_keypair_to_openpgp.
parent
9c7a001a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
ef97526d
2016-08-16 Niels Möller <nisse@lysator.liu.se>
* rsa2openpgp.c (rsa_keypair_to_openpgp): Added cast to const
uint8_t *.
* pgp-encode.c (write_string): New helper function, replacing...
(WRITE): ... deleted macro.
...
...
rsa2openpgp.c
View file @
ef97526d
...
...
@@ -85,7 +85,7 @@ rsa_keypair_to_openpgp(struct nettle_buffer *buffer,
/* userid packet */
userid_start
=
buffer
->
size
;
if
(
!
pgp_put_userid
(
buffer
,
strlen
(
userid
),
userid
))
if
(
!
pgp_put_userid
(
buffer
,
strlen
(
userid
),
(
const
uint8_t
*
)
userid
))
return
0
;
/* FIXME: We hash the key first, and then the user id. Is this right? */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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