summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pkcs7
diff options
context:
space:
mode:
authortb <>2023-03-12 17:29:02 +0000
committertb <>2023-03-12 17:29:02 +0000
commit2bc94b417c66333b4acae96b46d4aff34b3813cd (patch)
tree123977fbf1c7356e7153139baaf88b154f6912db /src/lib/libcrypto/pkcs7
parentb47b779f39c9bb247f8b61b2cf22ed2c7941ef56 (diff)
downloadopenbsd-2bc94b417c66333b4acae96b46d4aff34b3813cd.tar.gz
openbsd-2bc94b417c66333b4acae96b46d4aff34b3813cd.tar.bz2
openbsd-2bc94b417c66333b4acae96b46d4aff34b3813cd.zip
pk7_cb() and cms_cb()
Add and fix FALLTHROUGH statement. I was confused for way too long since I hadn't noticed that this case fell through to the next. Also add and move some empty lines in the cms_cb() to make this resemble KNF more.
Diffstat (limited to 'src/lib/libcrypto/pkcs7')
-rw-r--r--src/lib/libcrypto/pkcs7/pk7_asn1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_asn1.c b/src/lib/libcrypto/pkcs7/pk7_asn1.c
index e5366ca45e..f24f6be347 100644
--- a/src/lib/libcrypto/pkcs7/pk7_asn1.c
+++ b/src/lib/libcrypto/pkcs7/pk7_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pk7_asn1.c,v 1.15 2023/02/16 08:38:17 tb Exp $ */ 1/* $OpenBSD: pk7_asn1.c,v 1.16 2023/03/12 17:29:02 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 2000. 3 * project 2000.
4 */ 4 */
@@ -163,6 +163,7 @@ pk7_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
163 case ASN1_OP_STREAM_PRE: 163 case ASN1_OP_STREAM_PRE:
164 if (PKCS7_stream(&sarg->boundary, *pp7) <= 0) 164 if (PKCS7_stream(&sarg->boundary, *pp7) <= 0)
165 return 0; 165 return 0;
166 /* FALLTHROUGH */
166 167
167 case ASN1_OP_DETACHED_PRE: 168 case ASN1_OP_DETACHED_PRE:
168 sarg->ndef_bio = PKCS7_dataInit(*pp7, sarg->out); 169 sarg->ndef_bio = PKCS7_dataInit(*pp7, sarg->out);