summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509
diff options
context:
space:
mode:
authorguenther <>2014-04-20 20:06:20 +0000
committerguenther <>2014-04-20 20:06:20 +0000
commit6905ab05e647bd3379cca26c824e9ecd44942240 (patch)
tree90931c8435500dea3d590240ea7d0d9d4c989942 /src/lib/libcrypto/x509
parent538022838c853c2ae436fbf51f9f3255ab1bc93e (diff)
downloadopenbsd-6905ab05e647bd3379cca26c824e9ecd44942240.tar.gz
openbsd-6905ab05e647bd3379cca26c824e9ecd44942240.tar.bz2
openbsd-6905ab05e647bd3379cca26c824e9ecd44942240.zip
Restore beck's (void)snprintf(): they were reviewed.
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r--src/lib/libcrypto/x509/by_dir.c2
-rw-r--r--src/lib/libcrypto/x509/x509_txt.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c
index 295389bcb3..fdfca6140a 100644
--- a/src/lib/libcrypto/x509/by_dir.c
+++ b/src/lib/libcrypto/x509/by_dir.c
@@ -336,7 +336,7 @@ get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
336 hent = NULL; 336 hent = NULL;
337 } 337 }
338 for (;;) { 338 for (;;) {
339 snprintf(b->data, b->max, "%s/%08lx.%s%d", 339 (void) snprintf(b->data, b->max, "%s/%08lx.%s%d",
340 ent->dir, h, postfix, k); 340 ent->dir, h, postfix, k);
341 341
342#ifndef OPENSSL_NO_POSIX_IO 342#ifndef OPENSSL_NO_POSIX_IO
diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c
index 31a909a12c..3fb3b12355 100644
--- a/src/lib/libcrypto/x509/x509_txt.c
+++ b/src/lib/libcrypto/x509/x509_txt.c
@@ -184,7 +184,7 @@ X509_verify_cert_error_string(long n)
184 return("CRL path validation error"); 184 return("CRL path validation error");
185 185
186 default: 186 default:
187 snprintf(buf, sizeof buf, "error number %ld", n); 187 (void) snprintf(buf, sizeof buf, "error number %ld", n);
188 return (buf); 188 return(buf);
189 } 189 }
190} 190}