From 925c75a719331f051ce153ed087ea0a8bd6cbf64 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sun, 19 Jul 2020 22:31:24 -0400 Subject: [PATCH] Fix building on Debian 10 Moved last openssl header into openssl_sml.c to avoid including any unparseable system headers (ossl_typ.h pulled in inttypes.h which fails to parse). --- openssl/openssl_sml.c | 1 + openssl/openssl_sml.h | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/openssl/openssl_sml.c b/openssl/openssl_sml.c index d934217..c2028e3 100644 --- a/openssl/openssl_sml.c +++ b/openssl/openssl_sml.c @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/openssl/openssl_sml.h b/openssl/openssl_sml.h index 3f33922..f632ffd 100644 --- a/openssl/openssl_sml.h +++ b/openssl/openssl_sml.h @@ -1,8 +1,9 @@ -#include - -/* SSL_METHOD is defined in , which #includes system - headers that ml-nlffigen can't parse. */ - +/* OpenSSL header files include system headers that ml-nlffigen can't + parse, include any needed typedefs or forward declarations here. + */ +typedef struct bio_st BIO; +typedef struct ssl_st SSL; +typedef struct ssl_ctx_st SSL_CTX; typedef struct ssl_method_st SSL_METHOD; void OpenSSL_SML_init(void); -- 2.20.1