Changeset 17acafb


Ignore:
Timestamp:
Feb 24, 2009, 11:52:13 PM (15 years ago)
Author:
Sam Hartman <hartmans@debian.org>
Branches:
debian
Children:
4708281
Parents:
5043e2e
git-author:
Sam Hartman <hartmans@mit.edu> (02/24/09 23:41:54)
git-committer:
Sam Hartman <hartmans@debian.org> (02/24/09 23:52:13)
Message:
Support zcrypt using OpenSSL DES

Support a hackish mechanism for detecting OpenSSL DES if des425 is not
present.  If you include des.h then they include macros to be
consistent with the des425 API.  However these macros rename
des_ecb_encrypto te DES_ecb_encrypt.  Searching for both the macros
and the functions was annoying in autoconf, so instead we search for
those internal function names.

Also, search  for /usr/include/openssl if no krb4 includes are found.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r5043e2e r17acafb  
    4242        CPPFLAGS=${CPPFLAGS}\ -I/usr/local/include/kerberosIV
    4343        AC_MSG_RESULT(yes)
     44elif test -d /usr/include/openssl; then
     45        CFLAGS=${CFLAGS}\ -I/usr/include/openssl
     46        CPPFLAGS=${CPPFLAGS}\ -I/usr/include/openssl
     47        AC_MSG_RESULT(OpenSSL DES found instead)
    4448else
    4549        AC_MSG_RESULT(no)
     
    6165AC_CHECK_LIB(socket, socket)
    6266dnl AC_CHECK_LIB(des425, req_act_vno)
    63 AC_CHECK_LIB(des425, des_cbc_encrypt)
     67AC_CHECK_LIB(des425, des_cbc_encrypt,,AC_CHECK_LIB(crypto,DES_cbc_encrypt))
    6468AC_CHECK_LIB(resolv, res_search)
    6569dnl AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
     
    7377
    7478AC_CHECK_FUNCS(use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt)
     79AC_CHECK_FUNCS(                            DES_string_to_key  DES_ecb_encrypt DES_key_sched)
    7580
    7681AC_MSG_CHECKING(for des_ecb_encrypt prototype)
Note: See TracChangeset for help on using the changeset viewer.