summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_ncons.c
diff options
context:
space:
mode:
authortb <>2023-02-16 08:38:17 +0000
committertb <>2023-02-16 08:38:17 +0000
commitb1fbdd21532891fac5b0f128e57331894bd69d84 (patch)
tree689defafde66dbfa38a7854af566bd9a05f191b7 /src/lib/libcrypto/x509/x509_ncons.c
parentee0f647faa09f91cb79b628dcb818adaa381af90 (diff)
downloadopenbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.tar.gz
openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.tar.bz2
openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.zip
libressl *_namespace.h: adjust *_ALIAS() to require a semicolon
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most importantly) my workflow. Fix this by neutering them with asm("") so that -Wpedantic doesn't complain. There's precedent in libc's namespace.h fix suggested by & ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ncons.c')
-rw-r--r--src/lib/libcrypto/x509/x509_ncons.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_ncons.c b/src/lib/libcrypto/x509/x509_ncons.c
index c7e4e6ed9f..159e3c2563 100644
--- a/src/lib/libcrypto/x509/x509_ncons.c
+++ b/src/lib/libcrypto/x509/x509_ncons.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_ncons.c,v 1.8 2022/12/26 07:18:53 jmc Exp $ */ 1/* $OpenBSD: x509_ncons.c,v 1.9 2023/02/16 08:38:17 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -165,28 +165,28 @@ GENERAL_SUBTREE_new(void)
165{ 165{
166 return (GENERAL_SUBTREE*)ASN1_item_new(&GENERAL_SUBTREE_it); 166 return (GENERAL_SUBTREE*)ASN1_item_new(&GENERAL_SUBTREE_it);
167} 167}
168LCRYPTO_ALIAS(GENERAL_SUBTREE_new) 168LCRYPTO_ALIAS(GENERAL_SUBTREE_new);
169 169
170void 170void
171GENERAL_SUBTREE_free(GENERAL_SUBTREE *a) 171GENERAL_SUBTREE_free(GENERAL_SUBTREE *a)
172{ 172{
173 ASN1_item_free((ASN1_VALUE *)a, &GENERAL_SUBTREE_it); 173 ASN1_item_free((ASN1_VALUE *)a, &GENERAL_SUBTREE_it);
174} 174}
175LCRYPTO_ALIAS(GENERAL_SUBTREE_free) 175LCRYPTO_ALIAS(GENERAL_SUBTREE_free);
176 176
177NAME_CONSTRAINTS * 177NAME_CONSTRAINTS *
178NAME_CONSTRAINTS_new(void) 178NAME_CONSTRAINTS_new(void)
179{ 179{
180 return (NAME_CONSTRAINTS*)ASN1_item_new(&NAME_CONSTRAINTS_it); 180 return (NAME_CONSTRAINTS*)ASN1_item_new(&NAME_CONSTRAINTS_it);
181} 181}
182LCRYPTO_ALIAS(NAME_CONSTRAINTS_new) 182LCRYPTO_ALIAS(NAME_CONSTRAINTS_new);
183 183
184void 184void
185NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a) 185NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a)
186{ 186{
187 ASN1_item_free((ASN1_VALUE *)a, &NAME_CONSTRAINTS_it); 187 ASN1_item_free((ASN1_VALUE *)a, &NAME_CONSTRAINTS_it);
188} 188}
189LCRYPTO_ALIAS(NAME_CONSTRAINTS_free) 189LCRYPTO_ALIAS(NAME_CONSTRAINTS_free);
190 190
191static void * 191static void *
192v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, 192v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
@@ -353,7 +353,7 @@ NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc)
353 } 353 }
354 return X509_V_OK; 354 return X509_V_OK;
355} 355}
356LCRYPTO_ALIAS(NAME_CONSTRAINTS_check) 356LCRYPTO_ALIAS(NAME_CONSTRAINTS_check);
357static int 357static int
358nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) 358nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc)
359{ 359{