Commit ef97526d authored by Niels Möller's avatar Niels Möller

Fix signedness warning in rsa_keypair_to_openpgp.

parent 9c7a001a
2016-08-16 Niels Möller <nisse@lysator.liu.se> 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... * pgp-encode.c (write_string): New helper function, replacing...
(WRITE): ... deleted macro. (WRITE): ... deleted macro.
......
...@@ -85,7 +85,7 @@ rsa_keypair_to_openpgp(struct nettle_buffer *buffer, ...@@ -85,7 +85,7 @@ rsa_keypair_to_openpgp(struct nettle_buffer *buffer,
/* userid packet */ /* userid packet */
userid_start = buffer->size; 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; return 0;
/* FIXME: We hash the key first, and then the user id. Is this right? */ /* FIXME: We hash the key first, and then the user id. Is this right? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment