summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2021-06-30 18:09:47 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2021-06-30 18:09:47 +0000
commitba8723bbc1eb956202c65e2f170304afcdfb9899 (patch)
tree26b4e188cbd89a2f7956012fa3a6ee4b7ae1cb9f /regress/lib
parente7e266a776ba879a5c718a6149386bc498357bc6 (diff)
Pull in ssl_locl.h to allow for move of struct ssl_session_st.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libssl/asn1/Makefile3
-rw-r--r--regress/lib/libssl/asn1/asn1test.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/regress/lib/libssl/asn1/Makefile b/regress/lib/libssl/asn1/Makefile
index f4a57933e2e..16fca9f6ca0 100644
--- a/regress/lib/libssl/asn1/Makefile
+++ b/regress/lib/libssl/asn1/Makefile
@@ -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>
diff --git a/regress/lib/libssl/asn1/asn1test.c b/regress/lib/libssl/asn1/asn1test.c
index 13f3d106739..18a97138788 100644
--- a/regress/lib/libssl/asn1/asn1test.c
+++ b/regress/lib/libssl/asn1/asn1test.c
@@ -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);