-#include "openssl/bio.h"
-#include "openssl/ssl.h"
-#include "openssl/err.h"
+#include <openssl/ossl_typ.h>
+
+/* SSL_METHOD is defined in <openssl/ssl.h>, which #includes system
+ headers that ml-nlffigen can't parse. */
+
+typedef struct ssl_method_st SSL_METHOD;