summaryrefslogtreecommitdiffstats
path: root/crypto/http
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2022-08-23 20:37:03 +0200
committerPauli <pauli@openssl.org>2022-10-12 16:55:01 +1100
commitc7340583097a80a4fe42bacea745b2bbaa6d16db (patch)
treef39a93429d9bbc5bdddfc5458512ce8699695e50 /crypto/http
parent1567a821a4616f59748fa8982724f88e542867d6 (diff)
crypto/*: Fix various typos, repeated words, align some spelling to LDP.
partially revamped from #16712 - fall thru -> fall through - time stamp -> timestamp - host name -> hostname - ipv6 -> IPv6 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19059)
Diffstat (limited to 'crypto/http')
-rw-r--r--crypto/http/http_client.c8
-rw-r--r--crypto/http/http_lib.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c
index 005cbfc749..b3a204cd4a 100644
--- a/crypto/http/http_client.c
+++ b/crypto/http/http_client.c
@@ -51,7 +51,7 @@ struct ossl_http_req_ctx_st {
void *upd_arg; /* Optional arg for update callback function */
int use_ssl; /* Use HTTPS */
char *proxy; /* Optional proxy name or URI */
- char *server; /* Optional server host name */
+ char *server; /* Optional server hostname */
char *port; /* Optional server port */
BIO *mem; /* Mem BIO holding request header or response */
BIO *req; /* BIO holding the request provided by caller */
@@ -565,14 +565,14 @@ int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx)
}
rctx->state = OHS_WRITE_INIT;
- /* fall thru */
+ /* fall through */
case OHS_WRITE_INIT:
rctx->len_to_send = BIO_get_mem_data(rctx->mem, &rctx->pos);
rctx->state = OHS_WRITE_HDR;
if (OSSL_TRACE_ENABLED(HTTP))
OSSL_TRACE(HTTP, "Sending request header:\n");
- /* fall thru */
+ /* fall through */
case OHS_WRITE_HDR:
/* Copy some chunk of data from rctx->mem to rctx->wbio */
case OHS_WRITE_REQ:
@@ -612,7 +612,7 @@ int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx)
}
rctx->state = OHS_FLUSH;
- /* fall thru */
+ /* fall through */
case OHS_FLUSH:
i = BIO_flush(rctx->wbio);
diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c
index bd9c096b98..42ea6bc813 100644
--- a/crypto/http/http_lib.c
+++ b/crypto/http/http_lib.c
@@ -83,9 +83,9 @@ int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost,
else
host = p;
- /* parse host name/address as far as needed here */
+ /* parse hostname/address as far as needed here */
if (host[0] == '[') {
- /* ipv6 literal, which may include ':' */
+ /* IPv6 literal, which may include ':' */
host_end = strchr(host + 1, ']');
if (host_end == NULL)
goto parse_err;