[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-dev] [Patch] or/onion_ntor.c
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
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev