From e1592222813d718fc450a6a4799412fe86185a9f Mon Sep 17 00:00:00 2001
From: tb <>
Date: Sun, 4 Jun 2023 07:14:47 +0000
Subject: bn_mod_inverse tweaks

Provide prototype that is hidden behind LIBRESSL_INTERNAL for portable
and or in result for future extensibility.
---
 src/regress/lib/libcrypto/bn/bn_mod_inverse.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/regress/lib/libcrypto/bn/bn_mod_inverse.c b/src/regress/lib/libcrypto/bn/bn_mod_inverse.c
index b73d050669..f05e78c260 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_inverse.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_inverse.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: bn_mod_inverse.c,v 1.1 2023/06/03 21:20:29 tb Exp $ */
+/*	$OpenBSD: bn_mod_inverse.c,v 1.2 2023/06/04 07:14:47 tb Exp $ */
 
 /*
  * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -21,6 +21,8 @@
 
 #include <openssl/bn.h>
 
+BIGNUM *BN_mod_inverse(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
+
 static const struct mod_inv_test {
 	const char *i;
 	const char *a;
@@ -379,7 +381,7 @@ main(void)
 {
 	int failed = 0;
 
-	failed = test_bn_mod_inverse();
+	failed |= test_bn_mod_inverse();
 
 	return failed;
 }
-- 
cgit v1.2.3-55-g6feb