From c7d8f40ceb118368f3ddb75b6f72df6736a7e954 Mon Sep 17 00:00:00 2001
From: tb <>
Date: Tue, 25 Apr 2023 19:48:24 +0000
Subject: bio_asn1: adjust for more recent churn

---
 src/regress/lib/libcrypto/bio/Makefile   | 4 +++-
 src/regress/lib/libcrypto/bio/bio_asn1.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/regress/lib/libcrypto/bio/Makefile b/src/regress/lib/libcrypto/bio/Makefile
index 3084f06d32..0402e3939a 100644
--- a/src/regress/lib/libcrypto/bio/Makefile
+++ b/src/regress/lib/libcrypto/bio/Makefile
@@ -1,4 +1,4 @@
-#	$OpenBSD: Makefile,v 1.6 2023/04/25 15:29:17 tb Exp $
+#	$OpenBSD: Makefile,v 1.7 2023/04/25 19:48:24 tb Exp $
 
 PROGS +=	bio_asn1
 PROGS +=	bio_chain
@@ -9,7 +9,9 @@ LDADD =		-lcrypto
 DPADD =		${LIBCRYPTO}
 WARNINGS =	Yes
 CFLAGS +=	-DLIBRESSL_INTERNAL -Werror
+CFLAGS +=	-I${.CURDIR}/../../../../lib/libcrypto/asn1/
 CFLAGS +=	-I${.CURDIR}/../../../../lib/libcrypto/bio/
+CFLAGS +=	-I${.CURDIR}/../../../../lib/libcrypto/bytestring/
 
 LDADD_bio_asn1 = ${CRYPTO_INT}
 
diff --git a/src/regress/lib/libcrypto/bio/bio_asn1.c b/src/regress/lib/libcrypto/bio/bio_asn1.c
index ac7f48ced8..abb1642372 100644
--- a/src/regress/lib/libcrypto/bio/bio_asn1.c
+++ b/src/regress/lib/libcrypto/bio/bio_asn1.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: bio_asn1.c,v 1.2 2023/03/31 06:07:44 tb Exp $ */
+/*	$OpenBSD: bio_asn1.c,v 1.3 2023/04/25 19:48:24 tb Exp $ */
 
 /*
  * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -27,6 +27,8 @@
 #include <openssl/objects.h>
 #include <openssl/pkcs7.h>
 
+#include "asn1_local.h"
+
 /*
  * Minimal reproducer for the BIO_new_NDEF() write after free fixed in
  * bio_ndef.c r1.13.
-- 
cgit v1.2.3-55-g6feb