diff options
author | Nick Mathewson <nickm@torproject.org> | 2024-06-24 14:04:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2024-06-24 17:48:55 -0400 |
commit | 07f0a2b964eedd1ced201f2d1d82ec0089fac371 (patch) | |
tree | 85525971ade35b8aaadca8c73f571aa889acc5bd /src/feature/dirparse/parsecommon.h | |
parent | f631145cbf2d0a8f1f170e206c38c77edfba8bad (diff) | |
download | tor-07f0a2b964eedd1ced201f2d1d82ec0089fac371.tar.gz tor-07f0a2b964eedd1ced201f2d1d82ec0089fac371.zip |
Make onion-key body optional in microdescs
Also, stop storing onion keys in microdesc_t.
(In prop350, for microdescs, we are making the body optional; the "onion-key"
entry is still mandatory, so that we can tell where microdescs begin.)
Diffstat (limited to 'src/feature/dirparse/parsecommon.h')
-rw-r--r-- | src/feature/dirparse/parsecommon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/dirparse/parsecommon.h b/src/feature/dirparse/parsecommon.h index 9333ec4b27..d48d27499f 100644 --- a/src/feature/dirparse/parsecommon.h +++ b/src/feature/dirparse/parsecommon.h @@ -220,6 +220,7 @@ typedef struct directory_token_t { typedef enum { NO_OBJ, /**< No object, ever. */ NEED_OBJ, /**< Object is required. */ + OPT_KEY_1024, /**< If object is present, it must be a 1024 bit public key */ NEED_KEY_1024, /**< Object is required, and must be a 1024 bit public key */ NEED_KEY, /**< Object is required, and must be a public key. */ OBJ_OK, /**< Object is optional. */ |