diff options
author | tb <> | 2023-02-16 08:38:17 +0000 |
---|---|---|
committer | tb <> | 2023-02-16 08:38:17 +0000 |
commit | b1fbdd21532891fac5b0f128e57331894bd69d84 (patch) | |
tree | 689defafde66dbfa38a7854af566bd9a05f191b7 /src/lib/libcrypto/x509/pcy_lib.c | |
parent | ee0f647faa09f91cb79b628dcb818adaa381af90 (diff) | |
download | openbsd-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/pcy_lib.c')
-rw-r--r-- | src/lib/libcrypto/x509/pcy_lib.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x509/pcy_lib.c b/src/lib/libcrypto/x509/pcy_lib.c index e4b06e988b..e4d3fd9fa8 100644 --- a/src/lib/libcrypto/x509/pcy_lib.c +++ b/src/lib/libcrypto/x509/pcy_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pcy_lib.c,v 1.2 2022/11/14 17:48:49 beck Exp $ */ | 1 | /* $OpenBSD: pcy_lib.c,v 1.3 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 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -72,7 +72,7 @@ X509_policy_tree_level_count(const X509_POLICY_TREE *tree) | |||
72 | return 0; | 72 | return 0; |
73 | return tree->nlevel; | 73 | return tree->nlevel; |
74 | } | 74 | } |
75 | LCRYPTO_ALIAS(X509_policy_tree_level_count) | 75 | LCRYPTO_ALIAS(X509_policy_tree_level_count); |
76 | 76 | ||
77 | X509_POLICY_LEVEL * | 77 | X509_POLICY_LEVEL * |
78 | X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i) | 78 | X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i) |
@@ -81,7 +81,7 @@ X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i) | |||
81 | return NULL; | 81 | return NULL; |
82 | return tree->levels + i; | 82 | return tree->levels + i; |
83 | } | 83 | } |
84 | LCRYPTO_ALIAS(X509_policy_tree_get0_level) | 84 | LCRYPTO_ALIAS(X509_policy_tree_get0_level); |
85 | 85 | ||
86 | STACK_OF(X509_POLICY_NODE) * | 86 | STACK_OF(X509_POLICY_NODE) * |
87 | X509_policy_tree_get0_policies(const X509_POLICY_TREE *tree) | 87 | X509_policy_tree_get0_policies(const X509_POLICY_TREE *tree) |
@@ -90,7 +90,7 @@ X509_policy_tree_get0_policies(const X509_POLICY_TREE *tree) | |||
90 | return NULL; | 90 | return NULL; |
91 | return tree->auth_policies; | 91 | return tree->auth_policies; |
92 | } | 92 | } |
93 | LCRYPTO_ALIAS(X509_policy_tree_get0_policies) | 93 | LCRYPTO_ALIAS(X509_policy_tree_get0_policies); |
94 | 94 | ||
95 | STACK_OF(X509_POLICY_NODE) * | 95 | STACK_OF(X509_POLICY_NODE) * |
96 | X509_policy_tree_get0_user_policies(const X509_POLICY_TREE *tree) | 96 | X509_policy_tree_get0_user_policies(const X509_POLICY_TREE *tree) |
@@ -102,7 +102,7 @@ X509_policy_tree_get0_user_policies(const X509_POLICY_TREE *tree) | |||
102 | else | 102 | else |
103 | return tree->user_policies; | 103 | return tree->user_policies; |
104 | } | 104 | } |
105 | LCRYPTO_ALIAS(X509_policy_tree_get0_user_policies) | 105 | LCRYPTO_ALIAS(X509_policy_tree_get0_user_policies); |
106 | 106 | ||
107 | /* X509_POLICY_LEVEL stuff */ | 107 | /* X509_POLICY_LEVEL stuff */ |
108 | 108 | ||
@@ -120,7 +120,7 @@ X509_policy_level_node_count(X509_POLICY_LEVEL *level) | |||
120 | n += sk_X509_POLICY_NODE_num(level->nodes); | 120 | n += sk_X509_POLICY_NODE_num(level->nodes); |
121 | return n; | 121 | return n; |
122 | } | 122 | } |
123 | LCRYPTO_ALIAS(X509_policy_level_node_count) | 123 | LCRYPTO_ALIAS(X509_policy_level_node_count); |
124 | 124 | ||
125 | X509_POLICY_NODE * | 125 | X509_POLICY_NODE * |
126 | X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i) | 126 | X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i) |
@@ -134,7 +134,7 @@ X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i) | |||
134 | } | 134 | } |
135 | return sk_X509_POLICY_NODE_value(level->nodes, i); | 135 | return sk_X509_POLICY_NODE_value(level->nodes, i); |
136 | } | 136 | } |
137 | LCRYPTO_ALIAS(X509_policy_level_get0_node) | 137 | LCRYPTO_ALIAS(X509_policy_level_get0_node); |
138 | 138 | ||
139 | /* X509_POLICY_NODE stuff */ | 139 | /* X509_POLICY_NODE stuff */ |
140 | 140 | ||
@@ -145,7 +145,7 @@ X509_policy_node_get0_policy(const X509_POLICY_NODE *node) | |||
145 | return NULL; | 145 | return NULL; |
146 | return node->data->valid_policy; | 146 | return node->data->valid_policy; |
147 | } | 147 | } |
148 | LCRYPTO_ALIAS(X509_policy_node_get0_policy) | 148 | LCRYPTO_ALIAS(X509_policy_node_get0_policy); |
149 | 149 | ||
150 | STACK_OF(POLICYQUALINFO) * | 150 | STACK_OF(POLICYQUALINFO) * |
151 | X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node) | 151 | X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node) |
@@ -154,7 +154,7 @@ X509_policy_node_get0_qualifiers(const X509_POLICY_NODE *node) | |||
154 | return NULL; | 154 | return NULL; |
155 | return node->data->qualifier_set; | 155 | return node->data->qualifier_set; |
156 | } | 156 | } |
157 | LCRYPTO_ALIAS(X509_policy_node_get0_qualifiers) | 157 | LCRYPTO_ALIAS(X509_policy_node_get0_qualifiers); |
158 | 158 | ||
159 | const X509_POLICY_NODE * | 159 | const X509_POLICY_NODE * |
160 | X509_policy_node_get0_parent(const X509_POLICY_NODE *node) | 160 | X509_policy_node_get0_parent(const X509_POLICY_NODE *node) |
@@ -163,4 +163,4 @@ X509_policy_node_get0_parent(const X509_POLICY_NODE *node) | |||
163 | return NULL; | 163 | return NULL; |
164 | return node->parent; | 164 | return node->parent; |
165 | } | 165 | } |
166 | LCRYPTO_ALIAS(X509_policy_node_get0_parent) | 166 | LCRYPTO_ALIAS(X509_policy_node_get0_parent); |