try to use handle using openssl instead of libdes better. based on patches from GOMBAS Gabor <gombasg@inf.elte.hu> and Brian May <bam@snoopy.apana.org.au>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9681 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -50,7 +50,11 @@ RCSID("$Id$");
|
||||
#include "encrypt.h"
|
||||
#include "misc-proto.h"
|
||||
|
||||
#ifdef HAVE_OPENSSL_DES_H
|
||||
#include <openssl/des.h>
|
||||
#else
|
||||
#include <des.h>
|
||||
#endif
|
||||
|
||||
extern int encrypt_debug_mode;
|
||||
|
||||
|
@@ -90,6 +90,13 @@ typedef struct {
|
||||
|
||||
#define SK_DES 1 /* Matched Kerberos v5 KEYTYPE_DES */
|
||||
|
||||
#ifdef HAVE_OPENSSL_CRYPTO_H
|
||||
#include <openssl/des.h>
|
||||
#define des_new_random_key des_random_key
|
||||
#else
|
||||
#include <des.h>
|
||||
#endif
|
||||
|
||||
#include "enc-proto.h"
|
||||
|
||||
extern int encrypt_debug_mode;
|
||||
|
@@ -65,7 +65,6 @@ RCSID("$Id$");
|
||||
#include <arpa/telnet.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <des.h> /* BSD wont include this in krb.h, so we do it here */
|
||||
#include <krb.h>
|
||||
#include <pwd.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -74,7 +74,6 @@ RCSID("$Id$");
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <des.h>
|
||||
#include <krb.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@@ -166,7 +166,6 @@ struct hostent *gethostbyname(const char *);
|
||||
#endif
|
||||
|
||||
#ifdef KRB4
|
||||
#include <des.h>
|
||||
#include <krb.h>
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user