]> The Tcpdump Group git mirrors - tcpdump/commitdiff
struct newesp is required regardless of whether we have libcrypto or not.
authorGuy Harris <[email protected]>
Thu, 9 Jan 2014 00:05:54 +0000 (16:05 -0800)
committerGuy Harris <[email protected]>
Thu, 9 Jan 2014 00:05:54 +0000 (16:05 -0800)
print-esp.c

index d1ed4334639f4e8ec5b7fb08e2593a9cb94dd0dd..8b90641adff486fc3bcd3194889ce0c24ff9e446 100644 (file)
@@ -67,23 +67,6 @@ struct sockaddr_storage {
 #endif
 #endif /* HAVE_SOCKADDR_STORAGE */
 
-#ifdef HAVE_LIBCRYPTO
-struct sa_list {
-       struct sa_list  *next;
-       struct sockaddr_storage daddr;
-       u_int32_t       spi;          /* if == 0, then IKEv2 */
-       int             initiator;
-       u_char          spii[8];      /* for IKEv2 */
-       u_char          spir[8];
-       const EVP_CIPHER *evp;
-       int             ivlen;
-       int             authlen;
-       u_char          authsecret[256];
-       int             authsecret_len;
-       u_char          secret[256];  /* is that big enough for all secrets? */
-       int             secretlen;
-};
-
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  * All rights reserved.
@@ -128,6 +111,23 @@ struct newesp {
        /*variable size, 32bit bound*/  /* Authentication data */
 };
 
+#ifdef HAVE_LIBCRYPTO
+struct sa_list {
+       struct sa_list  *next;
+       struct sockaddr_storage daddr;
+       u_int32_t       spi;          /* if == 0, then IKEv2 */
+       int             initiator;
+       u_char          spii[8];      /* for IKEv2 */
+       u_char          spir[8];
+       const EVP_CIPHER *evp;
+       int             ivlen;
+       int             authlen;
+       u_char          authsecret[256];
+       int             authsecret_len;
+       u_char          secret[256];  /* is that big enough for all secrets? */
+       int             secretlen;
+};
+
 /*
  * this will adjust ndo_packetp and ndo_snapend to new buffer!
  */