summaryrefslogtreecommitdiffstats
path: root/crypto/http/http_err.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-01-25 22:54:17 +0100
committerDr. David von Oheimb <dev@ddvo.net>2021-02-02 07:54:37 +0100
commita6d40689ecfb5246c67feee3b8aa5698bb062e90 (patch)
treea862e0a41e4358bbb1f302a6c5f2ee4536c582b6 /crypto/http/http_err.c
parentd337af18919a5c24c6f1d0ceb9fdb7aaf1beaef4 (diff)
HTTP: add more error detection to low-level API
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13960)
Diffstat (limited to 'crypto/http/http_err.c')
-rw-r--r--crypto/http/http_err.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/http/http_err.c b/crypto/http/http_err.c
index ec46fb9304..49e56bedbf 100644
--- a/crypto/http/http_err.c
+++ b/crypto/http/http_err.c
@@ -25,6 +25,8 @@ static const ERR_STRING_DATA HTTP_str_reasons[] = {
{ERR_PACK(ERR_LIB_HTTP, 0, HTTP_R_ERROR_PARSING_URL), "error parsing url"},
{ERR_PACK(ERR_LIB_HTTP, 0, HTTP_R_ERROR_RECEIVING), "error receiving"},
{ERR_PACK(ERR_LIB_HTTP, 0, HTTP_R_ERROR_SENDING), "error sending"},
+ {ERR_PACK(ERR_LIB_HTTP, 0, HTTP_R_FAILED_READING_DATA),
+ "failed reading data"},
{ERR_PACK(ERR_LIB_HTTP, 0, HTTP_R_INCONSISTENT_CONTENT_LENGTH),
"inconsistent content length"},
{ERR_PACK(ERR_LIB_HTTP, 0, HTTP_R_INVALID_PORT_NUMBER),