From: Niels Möller Date: Tue, 16 Aug 2016 05:06:43 +0000 (+0200) Subject: Fix signedness warning in rsa_keypair_to_openpgp. X-Git-Tag: nettle_3.3_release_20161001~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef97526d169ea115735a17dd8c37f5f10b45e240;p=thirdparty%2Fnettle.git Fix signedness warning in rsa_keypair_to_openpgp. --- diff --git a/ChangeLog b/ChangeLog index 36a0ba74..725d22de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-08-16 Niels Möller + * rsa2openpgp.c (rsa_keypair_to_openpgp): Added cast to const + uint8_t *. + * pgp-encode.c (write_string): New helper function, replacing... (WRITE): ... deleted macro. diff --git a/rsa2openpgp.c b/rsa2openpgp.c index d04f77a5..c72a857b 100644 --- a/rsa2openpgp.c +++ b/rsa2openpgp.c @@ -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? */