summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1_par.c
diff options
context:
space:
mode:
authorguenther <>2014-04-19 11:46:39 +0000
committerguenther <>2014-04-19 11:46:39 +0000
commitf376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0 (patch)
tree1c4f9b095801061d57e575e80f245cef8a59a27f /src/lib/libcrypto/asn1/asn1_par.c
parent597610ccf04bbca4e88fac7988877d0a06e02211 (diff)
downloadopenbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.gz
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.bz2
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.zip
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 'src/lib/libcrypto/asn1/asn1_par.c')
-rw-r--r--src/lib/libcrypto/asn1/asn1_par.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c
index 064b3dcb22..8085d1e570 100644
--- a/src/lib/libcrypto/asn1/asn1_par.c
+++ b/src/lib/libcrypto/asn1/asn1_par.c
@@ -85,13 +85,13 @@ asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
85 85
86 p = str; 86 p = str;
87 if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) 87 if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)
88 (void) snprintf(str, sizeof str, "priv [ %d ] ", tag); 88 snprintf(str, sizeof str, "priv [ %d ] ", tag);
89 else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC) 89 else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC)
90 (void) snprintf(str, sizeof str, "cont [ %d ]", tag); 90 snprintf(str, sizeof str, "cont [ %d ]", tag);
91 else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION) 91 else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION)
92 (void) snprintf(str, sizeof str, "appl [ %d ]", tag); 92 snprintf(str, sizeof str, "appl [ %d ]", tag);
93 else if (tag > 30) 93 else if (tag > 30)
94 (void) snprintf(str, sizeof str, "<ASN1 %d>", tag); 94 snprintf(str, sizeof str, "<ASN1 %d>", tag);
95 else 95 else
96 p = ASN1_tag2str(tag); 96 p = ASN1_tag2str(tag);
97 97