diff --git a/configure b/configure index cad6b74..34dff8a 100755 --- a/configure +++ b/configure @@ -26138,7 +26138,13 @@ $as_echo "#define NETSNMP_USE_INTERNAL_CRYPTO 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal Crypto Support" >&5 $as_echo "Internal Crypto Support" >&6; } elif test "x$useopenssl" != "xno" ; then - authmodes="MD5 SHA1 SHA512 SHA384 SHA256 SHA192" + authmodes="MD5 SHA1" + if test "x$ac_cv_func_EVP_sha224" = xyes; then + authmodes="$authmodes SHA224 SHA256" + fi + if test "x$ac_cv_func_EVP_sha384" = xyes; then + authmodes="$authmodes SHA384 SHA512" + fi if test "x$enable_privacy" != "xno" ; then if test "x$ac_cv_header_openssl_aes_h" = "xyes" ; then encrmodes="DES AES" @@ -26177,6 +26183,13 @@ fi if test "x$enable_md5" = "xno"; then authmodes=`echo $authmodes | $SED 's/MD5 *//;'` fi +if test "x$ac_cv_func_AES_cfb128_encrypt" = xyes || + test "x$CRYPTO" = xinternal; then + encrmodes="$encrmodes AES128" + if test "x$aes_capable" = "xyes"; then + encrmodes="$encrmodes AES192 AES192C AES256 AES256C" + fi +fi diff --git a/configure.d/config_os_misc2 b/configure.d/config_os_misc2 index 1df9bf0..be0bcce 100644 --- a/configure.d/config_os_misc2 +++ b/configure.d/config_os_misc2 @@ -53,7 +53,13 @@ if test "x$CRYPTO" = "xinternal" ; then AC_DEFINE(NETSNMP_USE_INTERNAL_CRYPTO, 1, "Define if internal cryptography code should be used") AC_MSG_RESULT(Internal Crypto Support) elif test "x$useopenssl" != "xno" ; then - authmodes="MD5 SHA1 SHA512 SHA384 SHA256 SHA192" + authmodes="MD5 SHA1" + if test "x$ac_cv_func_EVP_sha224" = xyes; then + authmodes="$authmodes SHA224 SHA256" + fi + if test "x$ac_cv_func_EVP_sha384" = xyes; then + authmodes="$authmodes SHA384 SHA512" + fi if test "x$enable_privacy" != "xno" ; then if test "x$ac_cv_header_openssl_aes_h" = "xyes" ; then encrmodes="DES AES" @@ -86,6 +92,13 @@ fi if test "x$enable_md5" = "xno"; then authmodes=`echo $authmodes | $SED 's/MD5 *//;'` fi +if test "x$ac_cv_func_AES_cfb128_encrypt" = xyes || + test "x$CRYPTO" = xinternal; then + encrmodes="$encrmodes AES128" + if test "x$aes_capable" = "xyes"; then + encrmodes="$encrmodes AES192 AES192C AES256 AES256C" + fi +fi AC_SUBST(LNETSNMPLIBS) AC_SUBST(LAGENTLIBS) diff --git a/net-snmp-create-v3-user.in b/net-snmp-create-v3-user.in index b346b65..3aa0eb6 100644 --- a/net-snmp-create-v3-user.in +++ b/net-snmp-create-v3-user.in @@ -58,11 +58,11 @@ case $1 in exit 1 fi case $1 in - DES|AES|AES128) + DES|AES|AES128|AES192|AES256) Xalgorithm=$1 shift ;; - des|aes|aes128) + des|aes|aes128|aes192|aes256) Xalgorithm=`echo $1 | tr a-z A-Z` shift ;;