File 0764-snmp-test-Check-for-supported-hashes-and-cryptos-whe.patch of Package erlang
From 6d36d7778ee235acb57afe6282f8be35fb538c5c Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Thu, 2 Dec 2021 17:59:48 +0100
Subject: [PATCH] [snmp|test] Check for supported hashes and cryptos when
checking crypto
We (previously) only checked md5 and sha when validating the
crypto support (during group init). This has now been extended
with sha224, sha256, sha384, sha512, des_cbc, aes_cfb128,
aes_128_cfb128, aes_192_cfb128, aes_256_cfb128.
---
lib/snmp/test/snmp_test_lib.erl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index bbf53f8f3e..67359e91ab 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -2415,7 +2415,10 @@ crypto_start() ->
end.
crypto_support() ->
- crypto_support([md5, sha], []).
+ crypto_support([md5, sha, sha224, sha256, sha384, sha512,
+ des_cbc,
+ aes_cfb128, aes_128_cfb128, aes_192_cfb128, aes_256_cfb128],
+ []).
crypto_support([], []) ->
yes;
--
2.31.1