diff options
author | itojun <itojun> | 2003-07-17 13:43:24 +0000 |
---|---|---|
committer | itojun <itojun> | 2003-07-17 13:43:24 +0000 |
commit | 2a087c952dc9100fe5e8634d316edd09337247f3 (patch) | |
tree | 91e33d8685f731839df4b7c2c0052d91fb320c3e /print-esp.c | |
parent | f092086d6f08e9a20bde4b92303b640588468f95 (diff) | |
download | tcpdump-2a087c952dc9100fe5e8634d316edd09337247f3.tar.gz |
fix build without libcrypto
Diffstat (limited to 'print-esp.c')
-rw-r--r-- | print-esp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/print-esp.c b/print-esp.c index 16006781..cc3c1ef8 100644 --- a/print-esp.c +++ b/print-esp.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.41 2003-07-17 13:31:02 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.42 2003-07-17 13:43:24 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -71,6 +71,7 @@ struct sockaddr_storage { #endif #endif /* HAVE_SOCKADDR_STORAGE */ +#ifdef HAVE_LIBCRYPTO struct sa_list { struct sa_list *next; struct sockaddr_storage daddr; @@ -327,6 +328,7 @@ static void esp_init(void) OpenSSL_add_all_algorithms(); EVP_add_cipher_alias(SN_des_ede3_cbc, "3des"); } +#endif int esp_print(const u_char *bp, const u_char *bp2, int *nhdr, int *padlen) @@ -378,6 +380,9 @@ esp_print(const u_char *bp, const u_char *bp2, int *nhdr, int *padlen) printf(",seq=0x%x", EXTRACT_32BITS(&esp->esp_seq)); printf(")"); +#ifndef HAVE_LIBCRYPTO + goto fail; +#else /* initiailize SAs */ if (sa_list_head == NULL) { if (!espsecret) @@ -482,6 +487,7 @@ esp_print(const u_char *bp, const u_char *bp2, int *nhdr, int *padlen) printf(": "); return advance; +#endif fail: if (nhdr) |