summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/asn1_par.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-04-19 11:43:08 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-04-19 11:43:08 +0000
commitb121c76a6e9d1610f48fa1d06cd592e1feb2e4ed (patch)
treedc8ae33e0086a40a4b241a7d2f4cd52438465f43 /lib/libcrypto/asn1/asn1_par.c
parent56feac2c06a8a41409bd1a9e1331791ff28181b2 (diff)
We'll interpret a (void) cast on snprintf() to mean it's been verified that
truncation is either desirable, not an issue, or is detected and handled later ok deraadt@
Diffstat (limited to 'lib/libcrypto/asn1/asn1_par.c')
-rw-r--r--lib/libcrypto/asn1/asn1_par.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/asn1/asn1_par.c b/lib/libcrypto/asn1/asn1_par.c
index 064b3dcb228..8085d1e5704 100644
--- a/lib/libcrypto/asn1/asn1_par.c
+++ b/lib/libcrypto/asn1/asn1_par.c
@@ -85,13 +85,13 @@ asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
p = str;
if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)
- (void) snprintf(str, sizeof str, "priv [ %d ] ", tag);
+ snprintf(str, sizeof str, "priv [ %d ] ", tag);
else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC)
- (void) snprintf(str, sizeof str, "cont [ %d ]", tag);
+ snprintf(str, sizeof str, "cont [ %d ]", tag);
else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION)
- (void) snprintf(str, sizeof str, "appl [ %d ]", tag);
+ snprintf(str, sizeof str, "appl [ %d ]", tag);
else if (tag > 30)
- (void) snprintf(str, sizeof str, "<ASN1 %d>", tag);
+ snprintf(str, sizeof str, "<ASN1 %d>", tag);
else
p = ASN1_tag2str(tag);