aboutsummaryrefslogtreecommitdiff
path: root/src/lib/tls/x509.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-12 19:40:47 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-21 12:25:33 -0400
commit5245a296c58eb8aba712e94a78d5bcaa2a2f25fb (patch)
tree3c5698c25ebbe6e02799aac9447811f31dd01dc2 /src/lib/tls/x509.h
parentb9ca8f2356a98630a262951486cd10436963e169 (diff)
downloadtor-5245a296c58eb8aba712e94a78d5bcaa2a2f25fb.tar.gz
tor-5245a296c58eb8aba712e94a78d5bcaa2a2f25fb.zip
Make some x509 functions generic; remove some fields NSS doesn't need
Diffstat (limited to 'src/lib/tls/x509.h')
-rw-r--r--src/lib/tls/x509.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/tls/x509.h b/src/lib/tls/x509.h
index ccaa92184e..8316df75a3 100644
--- a/src/lib/tls/x509.h
+++ b/src/lib/tls/x509.h
@@ -27,8 +27,10 @@ typedef struct x509_st tor_x509_cert_impl_t;
/** Structure that we use for a single certificate. */
struct tor_x509_cert_t {
tor_x509_cert_impl_t *cert;
+#ifdef ENABLE_OPENSSL
uint8_t *encoded;
size_t encoded_len;
+#endif
unsigned pkey_digests_set : 1;
common_digests_t cert_digests;
common_digests_t pkey_digests;