mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-04 13:59:35 -05:00
detect if GOST works.
git-svn-id: file:///svn/unbound/trunk@2518 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
cefc027dbc
commit
28c9738062
3 changed files with 11 additions and 10 deletions
10
configure
vendored
10
configure
vendored
|
|
@ -15615,7 +15615,7 @@ $as_echo_n "checking if GOST works... " >&6; }
|
||||||
if test c${cross_compiling} = cno; then
|
if test c${cross_compiling} = cno; then
|
||||||
BAKCFLAGS="$CFLAGS"
|
BAKCFLAGS="$CFLAGS"
|
||||||
if test -n "$ssldir"; then
|
if test -n "$ssldir"; then
|
||||||
CFLAGS="$CFLAGS -Wl,-rpath=$ssldir/lib"
|
CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
|
||||||
fi
|
fi
|
||||||
if test "$cross_compiling" = yes; then :
|
if test "$cross_compiling" = yes; then :
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
|
@ -15696,12 +15696,12 @@ int main(void) {
|
||||||
if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
|
if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
|
||||||
if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
|
if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
|
||||||
if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
|
if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
|
||||||
if(1) {
|
/* uncomment to see the hash calculated.
|
||||||
int i;
|
{int i;
|
||||||
for(i=0; i<32; i++)
|
for(i=0; i<32; i++)
|
||||||
printf(" %2.2x", (int)digest[i]);
|
printf(" %2.2x", (int)digest[i]);
|
||||||
printf("\n");
|
printf("\n");}
|
||||||
}
|
*/
|
||||||
if(memcmp(digest, check, sizeof(check)) != 0)
|
if(memcmp(digest, check, sizeof(check)) != 0)
|
||||||
return 6;
|
return 6;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
10
configure.ac
10
configure.ac
|
|
@ -503,7 +503,7 @@ AC_MSG_CHECKING([if GOST works])
|
||||||
if test c${cross_compiling} = cno; then
|
if test c${cross_compiling} = cno; then
|
||||||
BAKCFLAGS="$CFLAGS"
|
BAKCFLAGS="$CFLAGS"
|
||||||
if test -n "$ssldir"; then
|
if test -n "$ssldir"; then
|
||||||
CFLAGS="$CFLAGS -Wl,-rpath=$ssldir/lib"
|
CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
|
||||||
fi
|
fi
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -576,12 +576,12 @@ int main(void) {
|
||||||
if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
|
if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
|
||||||
if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
|
if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
|
||||||
if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
|
if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
|
||||||
if(1) {
|
/* uncomment to see the hash calculated.
|
||||||
int i;
|
{int i;
|
||||||
for(i=0; i<32; i++)
|
for(i=0; i<32; i++)
|
||||||
printf(" %2.2x", (int)digest[i]);
|
printf(" %2.2x", (int)digest[i]);
|
||||||
printf("\n");
|
printf("\n");}
|
||||||
}
|
*/
|
||||||
if(memcmp(digest, check, sizeof(check)) != 0)
|
if(memcmp(digest, check, sizeof(check)) != 0)
|
||||||
return 6;
|
return 6;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
19 October 2011: Wouter
|
19 October 2011: Wouter
|
||||||
- fix unbound-anchor for broken strptime on OSX lion, detected
|
- fix unbound-anchor for broken strptime on OSX lion, detected
|
||||||
in configure.
|
in configure.
|
||||||
|
- Detect if GOST really works, openssl1.0 on OSX fails.
|
||||||
|
|
||||||
17 October 2011: Wouter
|
17 October 2011: Wouter
|
||||||
- better documentation for inform_super (Thanks Yang Zhe).
|
- better documentation for inform_super (Thanks Yang Zhe).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue