diff options
| author | beck <> | 2017-01-29 17:49:23 +0000 |
|---|---|---|
| committer | beck <> | 2017-01-29 17:49:23 +0000 |
| commit | d1f47bd292f36094480caa49ada36b99a69c59b0 (patch) | |
| tree | 1a54abba678898ee5270ae4f3404a50ee9a92eea /src/lib/libcrypto/asn1/t_req.c | |
| parent | f8c627888330b75c2eea8a3c27d0efe947a4f9da (diff) | |
| download | openbsd-d1f47bd292f36094480caa49ada36b99a69c59b0.tar.gz openbsd-d1f47bd292f36094480caa49ada36b99a69c59b0.tar.bz2 openbsd-d1f47bd292f36094480caa49ada36b99a69c59b0.zip | |
Send the function codes from the error functions to the bit bucket,
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
Diffstat (limited to 'src/lib/libcrypto/asn1/t_req.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/t_req.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/t_req.c b/src/lib/libcrypto/asn1/t_req.c index 8db456708a..a9b14fed73 100644 --- a/src/lib/libcrypto/asn1/t_req.c +++ b/src/lib/libcrypto/asn1/t_req.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: t_req.c,v 1.18 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: t_req.c,v 1.19 2017/01/29 17:49:22 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -81,7 +81,7 @@ X509_REQ_print_fp(FILE *fp, X509_REQ *x) | |||
| 81 | int ret; | 81 | int ret; |
| 82 | 82 | ||
| 83 | if ((b = BIO_new(BIO_s_file())) == NULL) { | 83 | if ((b = BIO_new(BIO_s_file())) == NULL) { |
| 84 | X509err(X509_F_X509_REQ_PRINT_FP, ERR_R_BUF_LIB); | 84 | X509error(ERR_R_BUF_LIB); |
| 85 | return (0); | 85 | return (0); |
| 86 | } | 86 | } |
| 87 | BIO_set_fp(b, fp, BIO_NOCLOSE); | 87 | BIO_set_fp(b, fp, BIO_NOCLOSE); |
| @@ -256,7 +256,7 @@ get_next: | |||
| 256 | return (1); | 256 | return (1); |
| 257 | 257 | ||
| 258 | err: | 258 | err: |
| 259 | X509err(X509_F_X509_REQ_PRINT_EX, ERR_R_BUF_LIB); | 259 | X509error(ERR_R_BUF_LIB); |
| 260 | return (0); | 260 | return (0); |
| 261 | } | 261 | } |
| 262 | 262 | ||
