From b1fbdd21532891fac5b0f128e57331894bd69d84 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 16 Feb 2023 08:38:17 +0000 Subject: 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 --- src/lib/libcrypto/x509/x509_d2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/x509/x509_d2.c') diff --git a/src/lib/libcrypto/x509/x509_d2.c b/src/lib/libcrypto/x509/x509_d2.c index 522062a694..bf358ec299 100644 --- a/src/lib/libcrypto/x509/x509_d2.c +++ b/src/lib/libcrypto/x509/x509_d2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_d2.c,v 1.11 2022/11/14 17:48:50 beck Exp $ */ +/* $OpenBSD: x509_d2.c,v 1.12 2023/02/16 08:38:17 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -83,7 +83,7 @@ X509_STORE_set_default_paths(X509_STORE *ctx) return (1); } -LCRYPTO_ALIAS(X509_STORE_set_default_paths) +LCRYPTO_ALIAS(X509_STORE_set_default_paths); int X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *path) @@ -108,7 +108,7 @@ X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *path) return (0); return (1); } -LCRYPTO_ALIAS(X509_STORE_load_locations) +LCRYPTO_ALIAS(X509_STORE_load_locations); int X509_STORE_load_mem(X509_STORE *ctx, void *buf, int len) @@ -128,4 +128,4 @@ X509_STORE_load_mem(X509_STORE *ctx, void *buf, int len) return (1); } -LCRYPTO_ALIAS(X509_STORE_load_mem) +LCRYPTO_ALIAS(X509_STORE_load_mem); -- cgit v1.2.3-55-g6feb