[tests] disable secdownload HMAC tests for NSS

NSS crypto lib does not expose interfaces to HMAC funcs
personal/stbuehler/tests-path
Glenn Strauss 2021-05-06 20:11:36 -04:00
parent 28f1d010d2
commit e2bd776f8f
2 changed files with 12 additions and 1 deletions

View File

@ -127,6 +127,11 @@ li_hmac_sha1 (unsigned char digest[SHA_DIGEST_LENGTH],
HMAC_Destroy(hmac, PR_TRUE);
return (SECSuccess == rc);
#else
UNUSED(digest);
UNUSED(secret);
UNUSED(slen);
UNUSED(msg);
UNUSED(mlen);
return 0;
#endif
#else
@ -197,6 +202,11 @@ li_hmac_sha256 (unsigned char digest[SHA256_DIGEST_LENGTH],
HMAC_Destroy(hmac, PR_TRUE);
return (SECSuccess == rc);
#else
UNUSED(digest);
UNUSED(secret);
UNUSED(slen);
UNUSED(msg);
UNUSED(mlen);
return 0;
#endif
#else

View File

@ -498,7 +498,8 @@ sub has_crypto {
my $FH;
open($FH, "-|",$self->{LIGHTTPD_PATH}, "-V") || return 0;
while (<$FH>) {
return 1 if (/[+] (?i:OpenSSL|mbedTLS|GnuTLS|WolfSSL|Nettle|NSS crypto) support/);
#return 1 if (/[+] (?i:OpenSSL|mbedTLS|GnuTLS|WolfSSL|Nettle|NSS crypto) support/);
return 1 if (/[+] (?i:OpenSSL|mbedTLS|GnuTLS|WolfSSL|Nettle) support/);
}
close $FH;
return 0;