mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
gnutls: increased dependency to 3.3.0
That way PKCS#11 reinitialization and global initialization are implicit. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -49,10 +49,7 @@ AC_CHECK_SIZEOF([unsigned long])
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
PKG_CHECK_MODULES([LIBNETTLE], [nettle >= 2.7])
|
||||
PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.1.10])
|
||||
AC_CHECK_LIB(gnutls, gnutls_pkcs11_reinit, [
|
||||
AC_DEFINE([HAVE_PKCS11], [], [PKCS11 detected in gnutls])
|
||||
])
|
||||
PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.3.0])
|
||||
|
||||
if ! $PKG_CONFIG --atleast-version=3.0 nettle; then
|
||||
AC_DEFINE([NETTLE_OLD_BASE64_API], [1],
|
||||
|
||||
@@ -1294,9 +1294,7 @@ static void print_version(void)
|
||||
#ifdef HAVE_PAM
|
||||
append("PAM");
|
||||
#endif
|
||||
#ifdef HAVE_PKCS11
|
||||
append("PKCS#11");
|
||||
#endif
|
||||
#ifdef ANYCONNECT_CLIENT_COMPAT
|
||||
append("AnyConnect");
|
||||
#endif
|
||||
|
||||
@@ -920,14 +920,6 @@ void sec_mod_server(void *main_pool, struct perm_cfg_st *perm_config, const char
|
||||
sec->cmd_fd = cmd_fd;
|
||||
sec->cmd_fd_sync = cmd_fd_sync;
|
||||
|
||||
#ifdef HAVE_PKCS11
|
||||
ret = gnutls_pkcs11_reinit();
|
||||
if (ret < 0) {
|
||||
seclog(sec, LOG_WARNING, "error in PKCS #11 reinitialization: %s",
|
||||
gnutls_strerror(ret));
|
||||
}
|
||||
#endif
|
||||
|
||||
if (sec_mod_client_db_init(sec) == NULL) {
|
||||
seclog(sec, LOG_ERR, "error in client db initialization");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user