> From: [email protected] (Niels Möller)
> Date: Sat, 01 Oct 2016 21:51:05 +0200
> 
> I'm happy to announce a new release of GNU Nettle, a low-level
> cryptographics library. This is mainly a bug fix release.

Thanks!

>       * Eliminate most pointer-signedness warnings. In the process,
>         the strings representing expression type for sexp_interator
>         functions were changed from const uint8_t * to const char *.
>         These functions are undocumented, and it doesn't change the
>         ABI on any platform I'm aware of.

Building with MinGW on MS-Windows, I still see a few warnings of this
kind, like the ones below:

nettle-hash.c: In function 'digest_file':
nettle-hash.c:123:25: warning: pointer targets in passing argument 1 of 
'nettle_base16_encode_update' differ in signedness [-Wpointer-sign]
    base16_encode_update(hex, 8, digest + i);
                         ^
In file included from nettle-hash.c:44:0:
../base16.h:46:30: note: expected 'uint8_t * {aka unsigned char *}' but 
argument is of type 'char *'
 #define base16_encode_update nettle_base16_encode_update
                              ^
../base16.h:64:1: note: in expansion of macro 'base16_encode_update'
 base16_encode_update(uint8_t *dst,
 ^
nettle-hash.c:127:28: warning: pointer targets in passing argument 1 of 
'nettle_base16_encode_update' differ in signedness [-Wpointer-sign]
       base16_encode_update(hex, digest_length - i, digest + i);
                            ^
In file included from nettle-hash.c:44:0:
../base16.h:46:30: note: expected 'uint8_t * {aka unsigned char *}' but 
argument is of type 'char *'
 #define base16_encode_update nettle_base16_encode_update
                              ^
../base16.h:64:1: note: in expansion of macro 'base16_encode_update'
 base16_encode_update(uint8_t *dst,
 ^

nettle-pbkdf2.c: In function 'main':
nettle-pbkdf2.c:181:25: warning: pointer targets in passing argument 1 of 
'nettle_base16_encode_update' differ in signedness [-Wpointer-sign]
    base16_encode_update(hex, 8, output + i);
                         ^
In file included from nettle-pbkdf2.c:44:0:
../base16.h:46:30: note: expected 'uint8_t * {aka unsigned char *}' but 
argument is of type 'char *'
 #define base16_encode_update nettle_base16_encode_update
                              ^
../base16.h:64:1: note: in expansion of macro 'base16_encode_update'
 base16_encode_update(uint8_t *dst,
 ^
nettle-pbkdf2.c:185:28: warning: pointer targets in passing argument 1 of 
'nettle_base16_encode_update' differ in signedness [-Wpointer-sign]
       base16_encode_update(hex, output_length - i, output + i);
                            ^
In file included from nettle-pbkdf2.c:44:0:
../base16.h:46:30: note: expected 'uint8_t * {aka unsigned char *}' but 
argument is of type 'char *'
 #define base16_encode_update nettle_base16_encode_update
                              ^
../base16.h:64:1: note: in expansion of macro 'base16_encode_update'
 base16_encode_update(uint8_t *dst,
 ^

In file included from testutils.c:3:0:
testutils.c: In function 'tstring_hex':
testutils.c:82:13: warning: pointer targets in passing argument 5 of 
'nettle_base16_decode_update' differ in signedness [-Wpointer-sign]
     length, hex));
             ^
testutils.h:293:11: note: in definition of macro 'ASSERT'
     if (!(x))        \
           ^
In file included from testutils.c:5:0:
../base16.h:49:30: note: expected 'const uint8_t * {aka const unsigned char *}' 
but argument is of type 'const char *'
 #define base16_decode_update nettle_base16_decode_update
                              ^
../base16.h:96:1: note: in expansion of macro 'base16_decode_update'
 base16_decode_update(struct base16_decode_ctx *ctx,
 ^
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to