[gnutls-devel] GnuTLS | nettle 3.5 issues/warnings (#835)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sat Sep 14 18:02:08 CEST 2019



Andreas Metzler created an issue: https://gitlab.com/gnutls/gnutls/issues/835



Hello,

I have just give nettle 3.5.1 a spin and built gnutls 3.6.9 against it.

```
checking for nettle_secp_192r1 in -lhogweed... no
[...]
Non-SuiteB curves:    no
```

>From nettle changelog:
> 2018-03-17  Niels Möller  <nisse at lysator.liu.se>
>	Discourage direct access to data symbols with non-public size.
>	Direct references to these symbols may result in copy-relocations
>	like R_X86_64_COPY, which make the symbol size leak into the ABI.
>	* ecc-curve.h (_nettle_secp_192r1, _nettle_secp_224r1)
>	(_nettle_secp_256r1, _nettle_secp_384r1, _nettle_secp_521r1): Add
>	leading underscore on these data symbols.

```
gcc -DHAVE_CONFIG_H -I. -I../../tests -I..  -I/usr/include/p11-kit-1 -I../../lib/includes -I../lib/includes -I../../libdane/includes -I../libdane/includes -I../../extra/includes -I../extra/includes -I../../lib -I../../doc/examples   -Wdate-time -D_FORTIFY_SOURCE=2 -fno-common -W -Wabsolute-value -Waddress -Waddress-of-packed-member -Waggressive-loop-optimizations -Wall -Wattribute-warning -Wattributes -Wbad-function-cast -Wbool-compare -Wbool-operation -Wbuiltin-declaration-mismatch -Wbuiltin-macro-redefined -Wcannot-profile -Wcast-align -Wcast-align=strict -Wcast-function-type -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdangling-else -Wdate-time -Wdeprecated -Wdeprecated-declarations -Wdesignated-init -Wdisabled-optimization -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wduplicate-decl-specifier -Wempty-body -Wendif-labels -Wenum-compare -Wexpansion-to-defined -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wif-not-aligned -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-profile -Wmissing-prototypes -Wmultichar -Wmultistatement-macros -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wnull-dereference -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wparentheses -Wpointer-arith -Wpointer-compare -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wrestrict -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-div -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wstringop-truncation -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsuggest-final-methods -Wsuggest-final-types -Wswitch -Wswitch-bool -Wswitch-unreachable -Wsync-nand -Wtautological-compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-macros -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Walloc-size-larger-than=9223372036854775807 -Warray-bounds=2 -Wattribute-alias=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wnormalized=nfc -Wshift-overflow=2 -Wstringop-overflow=2 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11 -fdiagnostics-show-option  -g -O2 -fdebug-prefix-map=/dev/shm/GNUTLS/gnutls-3.6.9=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -c -o mini_alignment-mini-alignment.o `test -f 'mini-alignment.c' || echo '../../tests/'`mini-alignment.c
../../tests/mini-alignment.c: In function 'myaes_setkey':
../../tests/mini-alignment.c:158:3: warning: 'nettle_aes_set_encrypt_key' is deprecated [-Wdeprecated-declarations]
[multiple similar warnings]
```

>	* Functions using the old struct aes_ctx have been marked as
>	  deprecated. Use the fixed key size interface instead, e.g.,
>	  struct aes256_ctx, introduced in Nettle-3.0.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/835
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190914/8ad8c898/attachment.html>


More information about the Gnutls-devel mailing list