mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-02 14:28:45 +02:00
detection of sha256 and sha512 by testing if functionality was compiled
into openssl. git-svn-id: file:///svn/unbound/trunk@1328 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -227,7 +227,7 @@ main(int argc, char* argv[])
|
||||
while( (c=getopt(argc, argv, "2ho:p:")) != -1) {
|
||||
switch(c) {
|
||||
case '2':
|
||||
#ifdef SHA256_DIGEST_LENGTH
|
||||
#ifdef HAVE_EVP_SHA256
|
||||
printf("SHA256 supported\n");
|
||||
exit(0);
|
||||
#else
|
||||
|
||||
@@ -471,11 +471,11 @@ verify_test()
|
||||
verifytest_file("testdata/test_signatures.6", "20080416005004");
|
||||
verifytest_file("testdata/test_signatures.7", "20070829144150");
|
||||
verifytest_file("testdata/test_signatures.8", "20070829144150");
|
||||
#ifdef SHA256_DIGEST_LENGTH
|
||||
#ifdef HAVE_EVP_SHA256
|
||||
verifytest_file("testdata/test_signatures.9", "20070829144150");
|
||||
verifytest_file("testdata/test_signatures.11", "20070829144150");
|
||||
#endif
|
||||
#ifdef SHA512_DIGEST_LENGTH
|
||||
#ifdef HAVE_EVP_SHA512
|
||||
verifytest_file("testdata/test_signatures.10", "20070829144150");
|
||||
#endif
|
||||
dstest_file("testdata/test_ds_sig.1");
|
||||
|
||||
Reference in New Issue
Block a user