[tests] disable secdownload HMAC tests for NSS
NSS crypto lib does not expose interfaces to HMAC funcspersonal/stbuehler/tests-path
parent
28f1d010d2
commit
e2bd776f8f
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue