[tor-dev] [Patch] or/onion_ntor.c

Gisle Vanem gvanem at broadpark.no
Tue Feb 12 22:53:19 UTC 2013


I suggest that the whole body of this file gets included
inside an "#ifdef CURVE25519_ENABLED" in-case someone
(like me!) inadvertently tries to compile it w/o this define
set. Patch:

--- Git-latest\src\or\onion_ntor.c   Tue Feb 12 18:40:04 2013
+++ or\onion_ntor.c     Tue Feb 12 23:46:51 2013
@@ -9,6 +9,8 @@
 #include "torlog.h"
 #include "util.h"

+#ifdef CURVE25519_ENABLED  /* Rest of file */
+
 /** Free storage held in an ntor handshake state. */
 void
 ntor_handshake_state_free(ntor_handshake_state_t *state)
@@ -292,4 +294,4 @@
   memwipe(&s, 0, sizeof(s));
   return bad ? -1 : 0;
 }
-
+#endif  /* CURVE25519_ENABLED */

--gv


More information about the tor-dev mailing list