]>
Commit | Line | Data |
---|---|---|
400e3fbb KK |
1 | --- ntp-4.2.4p7/configure.ac.orig 2009-05-19 10:44:23.000000000 +0200 |
2 | +++ ntp-4.2.4p7/configure.ac 2009-05-19 10:46:03.000000000 +0200 | |
3 | @@ -366,6 +366,7 @@ | |
4 | AC_CHECK_FUNC([openlog], , | |
5 | AC_SEARCH_LIBS([openlog], [gen], , | |
6 | AC_SEARCH_LIBS([openlog], [syslog], , , [$libxnet -lsocket]))) | |
7 | +AC_SEARCH_LIBS([MD5_Init], [crypto]) | |
8 | AC_SEARCH_LIBS([MD5Init], [md5 md]) | |
f5c5302f | 9 | AC_CHECK_FUNCS(MD5Init) |
400e3fbb | 10 | |
75717a14 ER |
11 | --- ntp-4.2.0/include/ntp_md5.h 2003-07-17 13:27:16.000000000 +0300 |
12 | +++ ntp-4.2.0.ssl/include/ntp_md5.h 2006-10-02 23:15:24.871129536 +0300 | |
13 | @@ -2,8 +2,15 @@ | |
14 | * ntp_md5.h: deal with md5.h headers | |
15 | */ | |
16 | ||
17 | +#ifdef HAVE_LIBCRYPTO | |
18 | +# include <openssl/md5.h> | |
19 | +#define MD5Update MD5_Update | |
20 | +#define MD5Final MD5_Final | |
21 | +#define MD5Init MD5_Init | |
22 | +#else | |
23 | #ifdef HAVE_MD5_H | |
24 | # include <md5.h> | |
25 | #else | |
26 | # include "rsa_md5.h" | |
27 | #endif | |
28 | +#endif | |
361800ae | 29 | --- ntp-4.2.0/libntp/md5c.c~ 2003-07-17 12:27:22.000000000 +0200 |
30 | +++ ntp-4.2.0/libntp/md5c.c 2007-02-22 13:51:00.000000000 +0100 | |
31 | @@ -24,7 +24,7 @@ | |
32 | */ | |
33 | ||
34 | #include "global.h" | |
35 | -#ifndef HAVE_MD5INIT | |
36 | +#if !HAVE_MD5INIT && !HAVE_LIBCRYPTO | |
37 | #include "ntp_md5.h" | |
38 | ||
39 | /* Constants for MD5Transform routine. | |
7cb659df | 40 | --- ntp-4.2.4p7/configure.ac.orig 2009-08-08 16:46:22.000000000 +0200 |
41 | +++ ntp-4.2.4p7/configure.ac 2009-08-08 17:52:24.000000000 +0200 | |
42 | @@ -427,17 +427,6 @@ | |
43 | esac | |
44 | AC_CHECK_HEADERS(errno.h fcntl.h ieeefp.h math.h) | |
45 | ||
46 | -# HMS: Lame, but fast. | |
47 | -if test -f /etc/redhat-release | |
48 | -then | |
49 | - : | |
50 | -else | |
51 | - AC_CHECK_HEADERS(md5.h, [], [], | |
52 | -[#if HAVE_SYS_TYPES_H | |
53 | -#include <sys/types.h> | |
54 | -#endif | |
55 | -]) | |
56 | -fi | |
57 | AC_CHECK_HEADERS(memory.h netdb.h poll.h) | |
58 | AC_CHECK_HEADERS(sched.h sgtty.h stdlib.h string.h termio.h) | |
59 | AC_CHECK_HEADERS(termios.h timepps.h timex.h unistd.h) |