From c7340583097a80a4fe42bacea745b2bbaa6d16db Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Tue, 23 Aug 2022 20:37:03 +0200 Subject: 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 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/19059) --- crypto/http/http_client.c | 8 ++++---- crypto/http/http_lib.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'crypto/http') 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; -- cgit v1.2.3