diff options
| author | beck <> | 2014-04-15 16:21:04 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-15 16:21:04 +0000 |
| commit | 815e93e74514b0f699488f372d491cf84236cd99 (patch) | |
| tree | 8c2058c07d3cdac3caf00950e53159c1c251f257 /src/lib/libcrypto/x509 | |
| parent | 6faa9226dd4494c01448085044adc07001ba4ca0 (diff) | |
| download | openbsd-815e93e74514b0f699488f372d491cf84236cd99.tar.gz openbsd-815e93e74514b0f699488f372d491cf84236cd99.tar.bz2 openbsd-815e93e74514b0f699488f372d491cf84236cd99.zip | |
Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversions
where the return value is ignored changing to (void) snprintf.
ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/x509')
| -rw-r--r-- | src/lib/libcrypto/x509/by_dir.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_txt.c | 2 |
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 c6602dae4f..f9d55c4e6d 100644 --- a/src/lib/libcrypto/x509/by_dir.c +++ b/src/lib/libcrypto/x509/by_dir.c | |||
| @@ -379,13 +379,13 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, | |||
| 379 | { | 379 | { |
| 380 | /* This is special. When c == '\0', no | 380 | /* This is special. When c == '\0', no |
| 381 | directory separator should be added. */ | 381 | directory separator should be added. */ |
| 382 | BIO_snprintf(b->data,b->max, | 382 | (void) snprintf(b->data,b->max, |
| 383 | "%s%08lx.%s%d",ent->dir,h, | 383 | "%s%08lx.%s%d",ent->dir,h, |
| 384 | postfix,k); | 384 | postfix,k); |
| 385 | } | 385 | } |
| 386 | else | 386 | else |
| 387 | { | 387 | { |
| 388 | BIO_snprintf(b->data,b->max, | 388 | (void) snprintf(b->data,b->max, |
| 389 | "%s%c%08lx.%s%d",ent->dir,c,h, | 389 | "%s%c%08lx.%s%d",ent->dir,c,h, |
| 390 | postfix,k); | 390 | postfix,k); |
| 391 | } | 391 | } |
diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c index c44f753c46..27f6c7176a 100644 --- a/src/lib/libcrypto/x509/x509_txt.c +++ b/src/lib/libcrypto/x509/x509_txt.c | |||
| @@ -185,7 +185,7 @@ const char *X509_verify_cert_error_string(long n) | |||
| 185 | return("CRL path validation error"); | 185 | return("CRL path validation error"); |
| 186 | 186 | ||
| 187 | default: | 187 | default: |
| 188 | BIO_snprintf(buf,sizeof buf,"error number %ld",n); | 188 | (void) snprintf(buf,sizeof buf,"error number %ld",n); |
| 189 | return(buf); | 189 | return(buf); |
| 190 | } | 190 | } |
| 191 | } | 191 | } |
