diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 22:16:03 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 22:16:03 +1100 |
commit | ec932376b7c8bf621bb93ee6ee1406332e1574e1 (patch) | |
tree | 987cef3b3fa60de9f41633fc3fdc06ef20a23846 | |
parent | c46cc5445dd9848c57318b3eb4fb7ca6a554839c (diff) |
- (djm) autoconf hacking:
- Add OpenSSL sanity check: verify that header version matches version
reported by library
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.ac | 19 |
2 files changed, 21 insertions, 2 deletions
@@ -6,6 +6,8 @@ | |||
6 | the ssh-rand-helper program. You can force the use of ssh-rand-helper | 6 | the ssh-rand-helper program. You can force the use of ssh-rand-helper |
7 | using the --with-rand-helper configure argument | 7 | using the --with-rand-helper configure argument |
8 | - Simplify and clean up ssh-rand-helper configuration | 8 | - Simplify and clean up ssh-rand-helper configuration |
9 | - Add OpenSSL sanity check: verify that header version matches version | ||
10 | reported by library | ||
9 | - (djm) Fix some bugs I introduced into ssh-rand-helper yesterday | 11 | - (djm) Fix some bugs I introduced into ssh-rand-helper yesterday |
10 | 12 | ||
11 | 20020121 | 13 | 20020121 |
@@ -7154,4 +7156,4 @@ | |||
7154 | - Wrote replacements for strlcpy and mkdtemp | 7156 | - Wrote replacements for strlcpy and mkdtemp |
7155 | - Released 1.0pre1 | 7157 | - Released 1.0pre1 |
7156 | 7158 | ||
7157 | $Id: ChangeLog,v 1.1723 2002/01/22 10:58:27 djm Exp $ | 7159 | $Id: ChangeLog,v 1.1724 2002/01/22 11:16:03 djm Exp $ |
diff --git a/configure.ac b/configure.ac index 9cc7dc97c..966f81265 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | i# $Id: configure.ac,v 1.11 2002/01/22 10:57:54 djm Exp $ | 1 | i# $Id: configure.ac,v 1.12 2002/01/22 11:16:05 djm Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -812,6 +812,23 @@ else | |||
812 | fi | 812 | fi |
813 | fi | 813 | fi |
814 | 814 | ||
815 | # Sanity check OpenSSL headers | ||
816 | AC_MSG_CHECKING([whether OpenSSL's headers match the library]) | ||
817 | AC_TRY_RUN( | ||
818 | [ | ||
819 | #include <string.h> | ||
820 | #include <openssl/opensslv.h> | ||
821 | int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
822 | ], | ||
823 | [ | ||
824 | AC_MSG_RESULT(yes) | ||
825 | ], | ||
826 | [ | ||
827 | AC_MSG_RESULT(no) | ||
828 | AC_MSG_ERROR(Your OpenSSL headers do not match your library) | ||
829 | ] | ||
830 | ) | ||
831 | |||
815 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | 832 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the |
816 | # version in OpenSSL. Skip this for PAM | 833 | # version in OpenSSL. Skip this for PAM |
817 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | 834 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then |