diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2022-08-23 20:37:03 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-23 18:21:47 +0100 |
commit | 2c54276e89ea3d44959f0844430c49de30711a6e (patch) | |
tree | e9fcceff25bc7c3cca3da0b82bc31efb4edc6188 /crypto/http | |
parent | 5af0050147ee0fce640722108639f3f7a72353b6 (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)
(cherry picked from commit c7340583097a80a4fe42bacea745b2bbaa6d16db)
Diffstat (limited to 'crypto/http')
-rw-r--r-- | crypto/http/http_client.c | 8 | ||||
-rw-r--r-- | crypto/http/http_lib.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c index 77302a23b2..2048eff6c3 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 */ @@ -564,12 +564,12 @@ 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; - /* fall thru */ + /* fall through */ case OHS_WRITE_HDR: /* Copy some chunk of data from rctx->mem to rctx->wbio */ case OHS_WRITE_REQ: @@ -605,7 +605,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; |