summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ocsp/ocsp_ht.c
diff options
context:
space:
mode:
authorbeck <>2017-01-29 17:49:23 +0000
committerbeck <>2017-01-29 17:49:23 +0000
commit957b11334a7afb14537322f0e4795b2e368b3f59 (patch)
tree1a54abba678898ee5270ae4f3404a50ee9a92eea /src/lib/libcrypto/ocsp/ocsp_ht.c
parentdf96e020e729c6c37a8c7fe311fdd1fe6a8718c5 (diff)
downloadopenbsd-957b11334a7afb14537322f0e4795b2e368b3f59.tar.gz
openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.tar.bz2
openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.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/ocsp/ocsp_ht.c')
-rw-r--r--src/lib/libcrypto/ocsp/ocsp_ht.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_ht.c b/src/lib/libcrypto/ocsp/ocsp_ht.c
index 61af3717b7..b9c969928a 100644
--- a/src/lib/libcrypto/ocsp/ocsp_ht.c
+++ b/src/lib/libcrypto/ocsp/ocsp_ht.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp_ht.c,v 1.23 2016/11/05 15:21:20 miod Exp $ */ 1/* $OpenBSD: ocsp_ht.c,v 1.24 2017/01/29 17:49:23 beck Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -207,8 +207,7 @@ parse_http_line1(char *line)
207 for (p = line; *p && !isspace((unsigned char)*p); p++) 207 for (p = line; *p && !isspace((unsigned char)*p); p++)
208 continue; 208 continue;
209 if (!*p) { 209 if (!*p) {
210 OCSPerr(OCSP_F_PARSE_HTTP_LINE1, 210 OCSPerror(OCSP_R_SERVER_RESPONSE_PARSE_ERROR);
211 OCSP_R_SERVER_RESPONSE_PARSE_ERROR);
212 return 0; 211 return 0;
213 } 212 }
214 213
@@ -216,8 +215,7 @@ parse_http_line1(char *line)
216 while (*p && isspace((unsigned char)*p)) 215 while (*p && isspace((unsigned char)*p))
217 p++; 216 p++;
218 if (!*p) { 217 if (!*p) {
219 OCSPerr(OCSP_F_PARSE_HTTP_LINE1, 218 OCSPerror(OCSP_R_SERVER_RESPONSE_PARSE_ERROR);
220 OCSP_R_SERVER_RESPONSE_PARSE_ERROR);
221 return 0; 219 return 0;
222 } 220 }
223 221
@@ -225,8 +223,7 @@ parse_http_line1(char *line)
225 for (q = p; *q && !isspace((unsigned char)*q); q++) 223 for (q = p; *q && !isspace((unsigned char)*q); q++)
226 continue; 224 continue;
227 if (!*q) { 225 if (!*q) {
228 OCSPerr(OCSP_F_PARSE_HTTP_LINE1, 226 OCSPerror(OCSP_R_SERVER_RESPONSE_PARSE_ERROR);
229 OCSP_R_SERVER_RESPONSE_PARSE_ERROR);
230 return 0; 227 return 0;
231 } 228 }
232 229
@@ -251,7 +248,7 @@ parse_http_line1(char *line)
251 *r = 0; 248 *r = 0;
252 } 249 }
253 if (retcode != 200) { 250 if (retcode != 200) {
254 OCSPerr(OCSP_F_PARSE_HTTP_LINE1, OCSP_R_SERVER_RESPONSE_ERROR); 251 OCSPerror(OCSP_R_SERVER_RESPONSE_ERROR);
255 if (!*q) 252 if (!*q)
256 ERR_asprintf_error_data("Code=%s", p); 253 ERR_asprintf_error_data("Code=%s", p);
257 else 254 else