From 631ab5c69b49f84ca191ff546f4795040e561843 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 23 Mar 2005 06:21:48 +0000 Subject: Add a magic value to cpath_layer_t to make sure that we can tell valid cpaths from freed ones. I audited this once; it could use another audit. svn:r3831 --- src/or/or.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/or.h') diff --git a/src/or/or.h b/src/or/or.h index 92d3de3433..70a31794ac 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -707,9 +707,12 @@ typedef struct { char *signing_router; } routerlist_t; +#define CRYPT_PATH_MAGIC 0x70127012u + /** Holds accounting information for a single step in the layered encryption * performed by a circuit. Used only at the client edge of a circuit. */ struct crypt_path_t { + uint32_t magic; /* crypto environments */ /** Encryption key and counter for cells heading towards the OR at this -- cgit v1.2.3-54-g00ecf