summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-02 21:37:55 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-02 21:37:55 +0000
commite2a49ed2f44fd47bc1ac71ef094f483badb3d33a (patch)
tree5da2ec79be9667fcf63eb9c6d7408e75f497331c /src/or/or.h
parent9279c1d5feb71f6b54e95a473cb8b35bc0dfd60f (diff)
downloadtor-e2a49ed2f44fd47bc1ac71ef094f483badb3d33a.tar.gz
tor-e2a49ed2f44fd47bc1ac71ef094f483badb3d33a.zip
r12639@catbus: nickm | 2007-05-02 17:37:49 -0400
Start implementing key certificate parsing. Note TODO items for combined 101/103. svn:r10097
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 9bfbc1686e..874174f993 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1300,6 +1300,14 @@ typedef struct extend_info_t {
crypto_pk_env_t *onion_key; /**< Current onionskin key. */
} extend_info_t;
+/** DOCDOC */
+typedef struct authority_cert_t {
+ signed_descriptor_t cache_info;
+ crypto_pk_env_t *identity_key;
+ crypto_pk_env_t *signing_key;
+ time_t expires;
+} authority_cert_t;
+
#define CRYPT_PATH_MAGIC 0x70127012u
/** Holds accounting information for a single step in the layered encryption
@@ -3198,5 +3206,11 @@ void dump_distinct_digest_count(int severity);
networkstatus_t *networkstatus_parse_from_string(const char *s);
+void authority_cert_free(authority_cert_t *cert);
+authority_cert_t *authority_cert_parse_from_string(const char *s,
+ char **end_of_string);
+
+
+
#endif