diff options
author | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2021-01-20 11:14:06 +0300 |
---|---|---|
committer | Dmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com> | 2021-01-20 14:45:09 +0300 |
commit | df02864ac012222f5e6b9f435813aa2e6df4ec4d (patch) | |
tree | 1705500394e86bf6f089569d1c50ccc8e4957c4a /m4 | |
parent | 471b36b6f9f337cf970040659a4a647d3e727670 (diff) |
........S. [ZBXNEXT-6427] added m4 detection of strong auth/priv proto support
Diffstat (limited to 'm4')
-rw-r--r-- | m4/netsnmp.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/netsnmp.m4 b/m4/netsnmp.m4 index 9cacf984494..d0e2aba3c8c 100644 --- a/m4/netsnmp.m4 +++ b/m4/netsnmp.m4 @@ -136,6 +136,32 @@ AC_HELP_STRING([--with-net-snmp@<:@=ARG@:>@], AC_CHECK_LIB(netsnmp, main, , [AC_MSG_ERROR([Not found Net-SNMP library])]) + dnl Check for SHA224/256/384/512 protocol support for auth + AC_MSG_CHECKING(for strong SHA auth protocol support) + AC_TRY_LINK([ +#include <net-snmp/net-snmp-config.h> +#include <net-snmp/net-snmp-includes.h>], + [ +struct snmp_session session; +session.securityAuthProto = usmHMAC384SHA512AuthProtocol; + ], + AC_DEFINE(HAVE_NETSNMP_STRONG_AUTH, 1, [Define to 1 if strong SHA auth protocols are supported.]) + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no)) + + dnl Check for AES192/256 protocol support for auth + AC_MSG_CHECKING(for strong AES privacy protocol support) + AC_TRY_LINK([ +#include <net-snmp/net-snmp-config.h> +#include <net-snmp/net-snmp-includes.h>], + [ +struct snmp_session session; +session.securityAuthProto = usmAES256PrivProtocol; + ], + AC_DEFINE(HAVE_NETSNMP_STRONG_PRIV, 1, [Define to 1 if strong AES priv protocols are supported.]) + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no)) + dnl Check for localname in struct snmp_session AC_MSG_CHECKING(for localname in struct snmp_session) AC_TRY_COMPILE([ |