Pull in ssl_locl.h to allow for move of struct ssl_session_st.
authorjsing <jsing@openbsd.org>
Wed, 30 Jun 2021 18:09:46 +0000 (18:09 +0000)
committerjsing <jsing@openbsd.org>
Wed, 30 Jun 2021 18:09:46 +0000 (18:09 +0000)
regress/lib/libssl/asn1/Makefile
regress/lib/libssl/asn1/asn1test.c

index f4a5793..16fca9f 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.1 2014/07/13 16:03:54 jsing Exp $
+#      $OpenBSD: Makefile,v 1.2 2021/06/30 18:09:46 jsing Exp $
 
 PROG=  asn1test
 LDADD= -lcrypto -lssl
@@ -6,5 +6,6 @@ DPADD=  ${LIBCRYPTO} ${LIBSSL}
 
 WARNINGS=      Yes
 CFLAGS+=       -DLIBRESSL_INTERNAL -Werror
+CFLAGS+=       -I${.CURDIR}/../../../../lib/libssl
 
 .include <bsd.regress.mk>
index 13f3d10..18a9713 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asn1test.c,v 1.7 2021/03/22 20:05:21 tb Exp $ */
+/*     $OpenBSD: asn1test.c,v 1.8 2021/06/30 18:09:46 jsing Exp $      */
 /*
  * Copyright (c) 2014, 2016 Joel Sing <jsing@openbsd.org>
  *
@@ -23,6 +23,8 @@
 #include <openssl/ssl.h>
 #include <openssl/tls1.h>
 
+#include "ssl_locl.h"
+
 int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);
 SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
     long length);