mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
torture_hashes: Skip the MD5 tests in FIPS mode
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
167aa8bc6c
commit
56041dc784
@@ -57,6 +57,10 @@ static void torture_md5_hash(void **state)
|
|||||||
size_t hlen;
|
size_t hlen;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
|
if (ssh_fips_mode()) {
|
||||||
|
skip();
|
||||||
|
}
|
||||||
|
|
||||||
rc = ssh_get_publickey_hash(pubkey, SSH_PUBLICKEY_HASH_MD5,
|
rc = ssh_get_publickey_hash(pubkey, SSH_PUBLICKEY_HASH_MD5,
|
||||||
(unsigned char **)&hash, &hlen);
|
(unsigned char **)&hash, &hlen);
|
||||||
if (ssh_fips_mode()) {
|
if (ssh_fips_mode()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user