aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2020-03-10 19:27:52 -0400
committerPaul Selkirk <paul@psgd.org>2020-03-10 19:27:52 -0400
commitccf20b321cf88d2f4af53c0789c9b18cfd2386ea (patch)
treeef5e5bf00f02dbc6b670172a95c9d2baad132a1f
parent040341007cf4492fdc8aa2d3f198dd22c2288ced (diff)
fallthrough comments to silence compiler warnings
-rw-r--r--asn1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/asn1.c b/asn1.c
index d57ec96..b1720f6 100644
--- a/asn1.c
+++ b/asn1.c
@@ -728,6 +728,7 @@ hal_error_t hal_asn1_decode_spki(const uint8_t **alg_oid, size_t *alg_oid_len,
d += hlen;
if (vlen == 0)
break;
+ /* fall through */
default:
return HAL_ERROR_ASN1_PARSE_FAILED;
@@ -831,6 +832,7 @@ hal_error_t hal_asn1_decode_pkcs8_privatekeyinfo(const uint8_t **alg_oid, size
d += hlen;
if (vlen == 0)
break;
+ /* fall through */
default:
return HAL_ERROR_ASN1_PARSE_FAILED;