aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/microdesc_st.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-29 15:04:54 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-29 15:04:54 -0400
commit6c0c08bbb506f47bf97bba82e4421592f71455d7 (patch)
tree2ecc3e58754e05a7f7510b0ed1882d82f405c2e8 /src/feature/nodelist/microdesc_st.h
parent7f1895c39a860437f4a1ec830f26d7d568facb63 (diff)
downloadtor-6c0c08bbb506f47bf97bba82e4421592f71455d7.tar.gz
tor-6c0c08bbb506f47bf97bba82e4421592f71455d7.zip
Expand the comments on ASN.1-encoded TAP keys
Diffstat (limited to 'src/feature/nodelist/microdesc_st.h')
-rw-r--r--src/feature/nodelist/microdesc_st.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/feature/nodelist/microdesc_st.h b/src/feature/nodelist/microdesc_st.h
index 40b562f265..d23da13137 100644
--- a/src/feature/nodelist/microdesc_st.h
+++ b/src/feature/nodelist/microdesc_st.h
@@ -53,8 +53,12 @@ struct microdesc_t {
/* Fields in the microdescriptor. */
- /* Public RSA key for onions in ASN.1 encoded. */
+ /**
+ * Public RSA TAP key for onions, ASN.1 encoded. We store this
+ * in its encoded format since storing it as a crypto_pk_t uses
+ * significantly more memory. */
char *onion_pkey;
+ /** Length of onion_pkey, in bytes. */
size_t onion_pkey_len;
/** As routerinfo_t.onion_curve25519_pkey */