[gnutls-devel] GnuTLS | 3.8.8 fails to compile system/ktls (#1606)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Nov 11 07:01:14 CET 2024



Дилян Палаузов created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1606



> ./configure --disable-ssl2-support --with-unbound-root-key-file=/usr/local/etc/unbound/root.key --with-default-trust-store-file=/etc/openssl/certs/ca-bundle.crt --with-default-trust-store-dir=/etc/openssl/certs --enable-ktls && make

results with gcc 14.2.1
```
make[4]: Entering directory '/src/gnutls-3.8.8/lib'                 
  CC       system/ktls.lo                                                                                                               
system/ktls.c: In function '_gnutls_ktls_set_keys':                                                                                     
system/ktls.c:662:68: error: storage size of 'crypto_info' isn't known                                                                  
  662 |                         struct tls12_crypto_info_chacha20_poly1305 crypto_info;
      |                                                                    ^~~~~~~~~~~                                                  system/ktls.c:666:33: error: 'TLS_CIPHER_CHACHA20_POLY1305' undeclared (first use in this function); did you mean 'GNUTLS_CIPHER_CHACHA2
0_POLY1305'?                                                                                                                            
  666 |                                 TLS_CIPHER_CHACHA20_POLY1305;           
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                    
      |                                 GNUTLS_CIPHER_CHACHA20_POLY1305               
system/ktls.c:666:33: note: each undeclared identifier is reported only once for each function it appears in
In file included from ./mbuffers.h:28,
                 from ./buffers.h:26,
                 from ./record.h:27,
                 from system/ktls.c:32:
system/ktls.c:668:32: error: 'TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE' undeclared (first use in this function); did you mean 'GNUTLS_CIPHE
R_CHACHA20_POLY1305'?
  668 |                                TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
system/ktls.c:674:40: error: 'TLS_CIPHER_CHACHA20_POLY1305_IV_SIZE' undeclared (first use in this function); did you mean 'GNUTLS_CIPHER
_CHACHA20_POLY1305'?
  674 |                                        TLS_CIPHER_CHACHA20_POLY1305_IV_SIZE);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                        GNUTLS_CIPHER_CHACHA20_POLY1305
system/ktls.c:678:40: error: 'TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE' undeclared (first use in this function); did you mean 'GNUTLS_CIPH
ER_CHACHA20_POLY1305'?
  678 |                                        TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE +
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
system/ktls.c:690:32: error: 'TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE' undeclared (first use in this function); did you mean 'TLS_CIPH
ER_AES_GCM_128_REC_SEQ_SIZE'?
  690 |                                TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE
system/ktls.c:662:68: warning: unused variable 'crypto_info' [-Wunused-variable]
  662 |                         struct tls12_crypto_info_chacha20_poly1305 crypto_info;
      |                                                                    ^~~~~~~~~~~
system/ktls.c:837:68: error: storage size of 'crypto_info' isn't known
  837 |                         struct tls12_crypto_info_chacha20_poly1305 crypto_info;
      |                                                                    ^~~~~~~~~~~
system/ktls.c:837:68: warning: unused variable 'crypto_info' [-Wunused-variable]

```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1606
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/20241111/1eff06f7/attachment-0001.html>


More information about the Gnutls-devel mailing list