Changeset b3a77b1


Ignore:
Timestamp:
Sep 14, 2009, 11:35:45 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
215c119
Parents:
ce27cc1
git-author:
Anders Kaseorg <andersk@mit.edu> (09/14/09 22:10:02)
git-committer:
Anders Kaseorg <andersk@mit.edu> (09/14/09 23:35:45)
Message:
Assume des_ecb_encrypt is prototyped.

I can’t find a system that has des_ecb_encrypt without a prototype, so
this cleans up configure.ac a little.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rce27cc1 rb3a77b1  
    8989AC_CHECK_FUNCS(                            DES_string_to_key  DES_ecb_encrypt DES_key_sched)
    9090
    91 AC_MSG_CHECKING(for des_ecb_encrypt prototype)
    92 AC_TRY_COMPILE([#include <des.h>
    93 int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);],
    94 [int foo = des_ecb_encrypt(0,0,0,0);],
    95 ac_cv_des_ecb_encrypt_proto=no,
    96 ac_cv_des_ecb_encrypt_proto=yes)
    97 AC_MSG_RESULT($ac_cv_des_ecb_encrypt_proto)
    98 if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
    99         AC_DEFINE([HAVE_DES_ECB_ENCRYPT_PROTO], [], [have proto for des_ecb_encrypt])
    100 fi
    101 
    10291dnl Checks for header files.
    10392AC_HEADER_STDC
  • zcrypt.c

    r36486be rb3a77b1  
    5050
    5151char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance);
    52 
    53 #ifndef HAVE_DES_ECB_ENCRYPT_PROTO
    54 int des_ecb_encrypt(char [], char [], des_key_schedule, int);
    55 #endif
    5652
    5753#define M_NONE            0
Note: See TracChangeset for help on using the changeset viewer.