From 4879f73ba340a5a6a1e4b5812f046c92cf362d95 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 26 Nov 2025 10:19:57 +0000 Subject: libcrypto: add header guards to *_local.h An upcoming change requires the inclusion of asn1_local.h in x509_local.h which doesn't work due to missing header guards. Add guards to all local headers that don't have them, although reacharounds and multiple inclusions are unlikely to occur for most of those. ok jsing --- src/lib/libcrypto/rc2/rc2_local.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/rc2/rc2_local.h') diff --git a/src/lib/libcrypto/rc2/rc2_local.h b/src/lib/libcrypto/rc2/rc2_local.h index dd5598760e..885b17aa5e 100644 --- a/src/lib/libcrypto/rc2/rc2_local.h +++ b/src/lib/libcrypto/rc2/rc2_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rc2_local.h,v 1.3 2024/03/29 05:03:48 jsing Exp $ */ +/* $OpenBSD: rc2_local.h,v 1.4 2025/11/26 10:19:57 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -56,6 +56,9 @@ * [including the GNU Public Licence.] */ +#ifndef HEADER_RC2_LOCAL_H +#define HEADER_RC2_LOCAL_H + #undef c2l #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ l|=((unsigned long)(*((c)++)))<< 8L, \ @@ -110,3 +113,5 @@ x2=(t<<3)|(t>>13); \ t=(x3+(x0& ~x2)+(x1&x2)+ *(p0++))&0xffff; \ x3=(t<<5)|(t>>11); + +#endif /* HEADER_RC2_LOCAL_H */ -- cgit v1.2.3-55-g6feb