diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-23 06:21:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-23 06:21:48 +0000 |
commit | 631ab5c69b49f84ca191ff546f4795040e561843 (patch) | |
tree | abe063c015ccb37b905909e4a086fc5b9b59788d /src/or/or.h | |
parent | 905c16846aa52841581204d53d0bfbdd5252a2ff (diff) | |
download | tor-631ab5c69b49f84ca191ff546f4795040e561843.tar.gz tor-631ab5c69b49f84ca191ff546f4795040e561843.zip |
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
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |