Hello,
I updateted my Slackware machine and noticed that I can not compile
openconnect with it.
I use gnutls 3.8.1
when I try to compile openconnect 9.12 then it stops with error message:
gnutls-dtls.c: In function 'start_dtls_handshake':
gnutls-dtls.c:413:84: error: 'GNUTLS_NO_EXTENSIONS' undeclared (first
use in this function); did you mean 'GNUTLS_EXT_NONE'?
413 | err = gnutls_init(&dtls_ssl,
GNUTLS_CLIENT|GNUTLS_DATAGRAM|GNUTLS_NONBLOCK|GNUTLS_NO_EXTENSIONS);
| ^~~~~~~~~~~~~~~~~~~~
| GNUTLS_EXT_NONE
gnutls-dtls.c:413:84: note: each undeclared identifier is reported only
once for each function it appears in
in gnutls 3.8.1 there is:
typedef enum {
GNUTLS_EXT_ANY = 0,
GNUTLS_EXT_APPLICATION = 1,
GNUTLS_EXT_TLS = 2,
GNUTLS_EXT_MANDATORY = 3,
GNUTLS_EXT_NONE = 4,
GNUTLS_EXT_VERSION_NEG = 5
} gnutls_ext_parse_type_t;
I changed GNUTLS_NO_EXTENSIONS to GNUTLS_EXT_NONE as compiler suggested
and openconnect compiled.
I put into openconnect's gnutls.h:
#ifndef GNUTLS_NO_EXTENSIONS
#define GNUTLS_NO_EXTENSIONS GNUTLS_EXT_NONE
#endif
I checked if it works and it works without problem in my case (I use
GlobalProtect connection)
Please add the fix to openconnect.
Thanks for help
Jarosław Siebert
_______________________________________________
openconnect-devel mailing list
openconnect-devel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/openconnect-devel