Browse Source

[tests] disable secdownload HMAC tests for NSS

NSS crypto lib does not expose interfaces to HMAC funcs
master
Glenn Strauss 7 months ago
parent
commit
e2bd776f8f
  1. 10
      src/algo_hmac.c
  2. 3
      tests/LightyTest.pm

10
src/algo_hmac.c

@ -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

3
tests/LightyTest.pm

@ -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;

Loading…
Cancel
Save