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:
Wouter Wijngaards
2008-11-03 16:06:12 +00:00
parent 8a32f9003b
commit 0d01be50bc
8 changed files with 124 additions and 17 deletions
+1 -1
View File
@@ -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