[tor-commits] [tor/master] Include x509.h in tortls_internal.h.

nickm at torproject.org nickm at torproject.org
Thu Jan 9 12:32:53 UTC 2020


commit 8bb686d8a01c975c12b6b78a89faeb45bd778518
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Dec 16 12:58:58 2019 -0500

    Include x509.h in tortls_internal.h.
    
    This gives us the definition of tor_x509_cert_impl_t, and makes us
    less dependent on include order.
---
 src/lib/tls/tortls_internal.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/tls/tortls_internal.h b/src/lib/tls/tortls_internal.h
index a7aee524f..8b7f78233 100644
--- a/src/lib/tls/tortls_internal.h
+++ b/src/lib/tls/tortls_internal.h
@@ -11,6 +11,8 @@
 #ifndef TORTLS_INTERNAL_H
 #define TORTLS_INTERNAL_H
 
+#include "lib/tls/x509.h"
+
 int tor_errno_to_tls_error(int e);
 #ifdef ENABLE_OPENSSL
 int tor_tls_get_error(tor_tls_t *tls, int r, int extra,





More information about the tor-commits mailing list