From 96bb3fc820a70bd53898842121b76d8d61062bc8 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 25 Mar 2023 09:09:28 +0000 Subject: [PATCH] BN_free() is defined in This is currently pulled in via dsa.h and ecdsa.h, but only when OPENSSL_NO_DEPRECATED is not defined. We should fix this in the public header, too - let's wait a bit with that. --- lib/libcrypto/dsa/dsa_asn1.c | 3 ++- lib/libcrypto/ecdsa/ecs_asn1.c | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/dsa/dsa_asn1.c b/lib/libcrypto/dsa/dsa_asn1.c index f6c66cecde3..70a826ca95c 100644 --- a/lib/libcrypto/dsa/dsa_asn1.c +++ b/lib/libcrypto/dsa/dsa_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_asn1.c,v 1.29 2023/03/07 09:27:10 jsing Exp $ */ +/* $OpenBSD: dsa_asn1.c,v 1.30 2023/03/25 09:09:28 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -61,6 +61,7 @@ #include #include +#include #include #include diff --git a/lib/libcrypto/ecdsa/ecs_asn1.c b/lib/libcrypto/ecdsa/ecs_asn1.c index 9db114a2d18..916220f97d0 100644 --- a/lib/libcrypto/ecdsa/ecs_asn1.c +++ b/lib/libcrypto/ecdsa/ecs_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecs_asn1.c,v 1.13 2023/03/07 09:27:10 jsing Exp $ */ +/* $OpenBSD: ecs_asn1.c,v 1.14 2023/03/25 09:09:28 tb Exp $ */ /* ==================================================================== * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved. * @@ -53,9 +53,11 @@ * */ -#include "ecs_local.h" -#include #include +#include +#include + +#include "ecs_local.h" static const ASN1_TEMPLATE ECDSA_SIG_seq_tt[] = { { -- 2.20.1