]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
spelling: 'a' vs 'an'
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 May 2025 08:27:35 +0000 (10:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 May 2025 09:38:35 +0000 (11:38 +0200)
Closes #17487

43 files changed:
docs/FAQ
docs/INSTALL.md
docs/KNOWN_BUGS
docs/SSL-PROBLEMS.md
docs/TODO
docs/URL-SYNTAX.md
docs/examples/imap-ssl.c
docs/examples/multithread.c
docs/examples/pop3-ssl.c
docs/examples/smtp-ssl.c
docs/internals/CLIENT-READERS.md
docs/internals/CONNECTION-FILTERS.md
docs/libcurl/libcurl-env-dbg.md
docs/libcurl/libcurl-env.md
docs/libcurl/libcurl-errors.md
lib/cf-https-connect.c
lib/curl_sspi.c
lib/curl_sspi.h
lib/ftp.c
lib/http.c
lib/http_chunks.h
lib/imap.c
lib/inet_ntop.c
lib/pop3.c
lib/setopt.c
lib/smtp.c
lib/vauth/digest_sspi.c
lib/vauth/vauth.c
lib/vauth/vauth.h
lib/vtls/gtls.c
lib/vtls/keylog.c
lib/vtls/keylog.h
lib/vtls/openssl.c
lib/vtls/vtls_scache.h
tests/data/test1267
tests/data/test1704
tests/data/test208
tests/http/scorecard.py
tests/http/test_12_reuse.py
tests/libtest/lib2405.c
tests/libtest/lib518.c
tests/libtest/lib537.c
tests/unit/unit1660.c

index 9fae793e018279e91f9a861d7dfa06daec85f7bf..5c92b4688d9f236bca16a915a62f2f80afa48c19 100644 (file)
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -1411,7 +1411,7 @@ FAQ
 
 6. License Issues
 
-  curl and libcurl are released under a MIT/X derivative license. The license
+  curl and libcurl are released under an MIT/X derivative license. The license
   is liberal and should not impose a problem for your project. This section is
   just a brief summary for the cases we get the most questions. (Parts of this
   section was much enhanced by Bjorn Reese.)
index f61c0ead3127efea8d9f92e273447c92eb5a6d61..a70a78aa8e8d3e4fc85f631cf5e03fd80789f2d8 100644 (file)
@@ -459,7 +459,7 @@ to adjust those variables accordingly. After that you can build curl like this:
     ./configure --host aarch64-linux-android --with-pic --disable-shared
 
 Note that this does not give you SSL/TLS support. If you need SSL/TLS, you
-have to build curl with a SSL/TLS library, e.g. OpenSSL, because it is
+have to build curl with an SSL/TLS library, e.g. OpenSSL, because it is
 impossible for curl to access Android's native SSL/TLS layer. To build curl
 for Android using OpenSSL, follow the OpenSSL build instructions and then
 install `libssl.a` and `libcrypto.a` to `$TOOLCHAIN/sysroot/usr/lib` and copy
index 6b2a7b81b1a95f072a8dc668f58514dff25a113b..8abec281870c2c0b507538e12618beb497808360 100644 (file)
@@ -400,9 +400,9 @@ problems may have been fixed or changed somewhat since this was written.
 
 9.1 SFTP does not do CURLOPT_POSTQUOTE correct
 
- When libcurl sends CURLOPT_POSTQUOTE commands when connected to a SFTP server
- using the multi interface, the commands are not being sent correctly and
- instead the connection is "cancelled" (the operation is considered done)
+ When libcurl sends CURLOPT_POSTQUOTE commands when connected to an SFTP
+ server using the multi interface, the commands are not being sent correctly
and instead the connection is "cancelled" (the operation is considered done)
  prematurely. There is a half-baked (busy-looping) patch provided in the bug
  report but it cannot be accepted as-is. See
  https://curl.se/bug/view.cgi?id=748
index 620392c4ea7d99c0ef93f9e1ca7ec4974ea0837a..301ce7e870adfac8a95be6c3f2b7364ae4940871 100644 (file)
@@ -40,8 +40,8 @@ SPDX-License-Identifier: curl
 
   Some broken servers fail to support the protocol negotiation properly that
   SSL servers are supposed to handle. This may cause the connection to fail
-  completely. Sometimes you may need to explicitly select a SSL version to use
-  when connecting to make the connection succeed.
+  completely. Sometimes you may need to explicitly select an SSL version to
+  use when connecting to make the connection succeed.
 
   An additional complication can be that modern SSL libraries sometimes are
   built with support for older SSL and TLS versions disabled.
index 9e398d82832e4bd50273c2a8fa9e9b8d670de737..6413718ff77da0fcefc796e600a4d3137aa0208e 100644 (file)
--- a/docs/TODO
+++ b/docs/TODO
  See https://github.com/curl/curl/issues/4915 and lib1541.c
 
  The share interface offers CURL_LOCK_DATA_HSTS to have multiple easy handle
- share a HSTS cache, but this is not thread-safe.
+ share an HSTS cache, but this is not thread-safe.
 
 1.5 get rid of PATH_MAX
 
 
 11.1 File listing support
 
- Add support for listing the contents of a SMB share. The output should
+ Add support for listing the contents of an SMB share. The output should
  probably be the same as/similar to FTP.
 
 11.2 Honor file timestamps
index 81c69260dad20126295f415b5f3bf9c6f2f1c4e4..44412b4eb9084bfb4e0dd93cda92efd1776af129 100644 (file)
@@ -318,9 +318,9 @@ was specified in the URL. That was a bug fixed in 7.62.0, which added
 
 ## LDAP
 
-The path part of a LDAP request can be used to specify the: Distinguished
-Name, Attributes, Scope, Filter and Extension for a LDAP search. Each field is
-separated by a question mark and when that field is not required an empty
+The path part of an LDAP request can be used to specify the: Distinguished
+Name, Attributes, Scope, Filter and Extension for an LDAP search. Each field
+is separated by a question mark and when that field is not required an empty
 string with the question mark separator should be included.
 
 Search for the `DN` as `My Organization`:
@@ -336,8 +336,8 @@ Search for an empty `DN` and request information about the
 
     ldap://ldap.example.com/?rootDomainNamingContext
 
-For more information about the individual components of a LDAP URL please
-see [RFC 4516](https://datatracker.ietf.org/doc/html/rfc4516).
+For more information about the individual components of an LDAP URL please see
+[RFC 4516](https://datatracker.ietf.org/doc/html/rfc4516).
 
 ## POP3
 
@@ -361,7 +361,7 @@ file. If the path is omitted entirely then the directory listing for the root
 / home directory is returned.
 
 ## SMB
-The path part of a SMB request specifies the file to retrieve and from what
+The path part of an SMB request specifies the file to retrieve and from what
 share and directory or the share to upload to and as such, may not be omitted.
 If the username is embedded in the URL then it must contain the domain name
 and as such, the backslash must be URL encoded as %2f.
@@ -373,7 +373,7 @@ curl supports SMB version 1 (only)
 
 ## SMTP
 
-The path part of a SMTP request specifies the hostname to present during
+The path part of an SMTP request specifies the hostname to present during
 communication with the mail server. If the path is omitted, then libcurl
 attempts to resolve the local computer's hostname. However, this may not
 return the fully qualified domain name that is required by some mail servers
index a2774bea4ab2487a92fc0ecd7be95ece147e390b..e632c30e86d8e6fef801d4273944e7b7f554ab16 100644 (file)
@@ -49,7 +49,7 @@ int main(void)
     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
 
     /* This fetches message 1 from the user's inbox. Note the use of
-    * imaps:// rather than imap:// to request a SSL based connection. */
+    * imaps:// rather than imap:// to request an SSL based connection. */
     curl_easy_setopt(curl, CURLOPT_URL,
                      "imaps://imap.example.com/INBOX/;UID=1");
 
index 3b500c7652df00beef98a19040d0ac05f12dc1be..7978419bdc57a2ec51379612a3a8063c1665ce68 100644 (file)
@@ -35,7 +35,7 @@
 /*
   List of URLs to fetch.
 
-  If you intend to use a SSL-based protocol here you might need to setup TLS
+  If you intend to use an SSL-based protocol here you might need to setup TLS
   library mutex callbacks as described here:
 
   https://curl.se/libcurl/c/threadsafe.html
index dcc7992e418ff95ac9165989cc1534425727deeb..23dd959ea0af8cba7a968c3b95244603ee2be547 100644 (file)
@@ -48,8 +48,8 @@ int main(void)
     curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
 
-    /* This retrieves message 1 from the user's mailbox. Note the use of
-     * pop3s:// rather than pop3:// to request a SSL based connection. */
+    /* This retrieves message 1 from the user's mailbox. Note the use of *
+       pop3s:// rather than pop3:// to request an SSL based connection. */
     curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
 
     /* If you want to connect to a site who is not using a certificate that is
index 150de9ceab32b9d862e791082a7b5dfa09ce56e4..c88b4fe7cab030bb97873632207cf2ccbac88abf 100644 (file)
@@ -100,7 +100,7 @@ int main(void)
     curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
 
     /* This is the URL for your mailserver. Note the use of smtps:// rather
-     * than smtp:// to request a SSL based connection. */
+     * than smtp:// to request an SSL based connection. */
     curl_easy_setopt(curl, CURLOPT_URL, "smtps://mainserver.example.net");
 
     /* If you want to connect to a site who is not using a certificate that is
index 073063845afdad063a968c84063dc20621508d38..35caaa6bfc6db1580e9388059296a5060ff926ec 100644 (file)
@@ -128,5 +128,8 @@ By adding the client reader interface, any protocol can control how/if it wants
 The protocols on the other hand no longer have to care to package data most efficiently. At any time, should more data be needed, it can be read from the client. This is used when sending HTTP requests headers to add as much request body data to the initial sending as there is room for.
 
 Future enhancements based on the client readers:
-* `expect-100` handling: place that into a HTTP specific reader at `CURL_CR_PROTOCOL` and eliminate the checks in the generic transfer parts.
-* `eos forwarding`: transfer should forward an `eos` flag to the connection filters. Filters like HTTP/2 and HTTP/3 can make use of that, terminating streams early. This would also eliminate length checks in stream handling.
+* `expect-100` handling: place that into an HTTP specific reader at
+  `CURL_CR_PROTOCOL` and eliminate the checks in the generic transfer parts.
+* `eos forwarding`: transfer should forward an `eos` flag to the connection
+  filters. Filters like HTTP/2 and HTTP/3 can make use of that, terminating
+  streams early. This would also eliminate length checks in stream handling.
index 629e769b90c2e0268740afe1b20315d9c589e955..09acc7ad9560471b74d4e268c24017fa60e21959 100644 (file)
@@ -21,7 +21,7 @@ The most important feat of connection filters is that they can be stacked on
 top of each other (or "chained" if you prefer that metaphor). In the common
 scenario that you want to retrieve a `https:` URL with curl, you need 2 basic
 things to send the request and get the response: a TCP connection, represented
-by a `socket` and a SSL instance en- and decrypt over that socket. You write
+by a `socket` and an SSL instance en- and decrypt over that socket. You write
 your request to the SSL instance, which encrypts and writes that data to the
 socket, which then sends the bytes over the network.
 
index aeb79ff395bf74369c07dd65eb5e5ebbb8c71279..a5e977f3027a6cf48c8b34f5f1d5c4b5e50f98d9 100644 (file)
@@ -29,8 +29,8 @@ Bypass the AltSvc HTTPS protocol restriction if this variable exists.
 
 ## `CURL_DBG_SOCK_RBLOCK`
 
-The percentage of recv() calls that should be answered with a EAGAIN at random.
-For TCP/UNIX sockets.
+The percentage of recv() calls that should be answered with an EAGAIN at
+random. For TCP/UNIX sockets.
 
 ## `CURL_DBG_SOCK_RMAX`
 
@@ -42,8 +42,8 @@ maximum of 400 bytes.
 
 ## `CURL_DBG_SOCK_WBLOCK`
 
-The percentage of send() calls that should be answered with a EAGAIN at random.
-For TCP/UNIX sockets.
+The percentage of send() calls that should be answered with an EAGAIN at
+random. For TCP/UNIX sockets.
 
 ## `CURL_DBG_SOCK_WPARTIAL`
 
index 5b733204653b7f941c95a56d66aa3e5eb3443b4b..ac907f1bbd04da78e4772af127be4065f24cf0ae 100644 (file)
@@ -83,7 +83,7 @@ Username to use when invoking the *ntlm-wb* tool.
 
 ## `SSLKEYLOGFILE`
 
-When set and libcurl runs with a SSL backend that supports this feature,
+When set and libcurl runs with an SSL backend that supports this feature,
 libcurl saves SSL secrets into the given filename. Using those SSL secrets,
 other tools (such as Wireshark) can decrypt the SSL communication and
 analyze/view the traffic.
index 110702339d132c87d6d90103461efaa38c80e06c..ed2f4ca5a705e2b21807c343f24d1457072bc414 100644 (file)
@@ -105,7 +105,7 @@ CURLOPT_ACCEPTTIMEOUT_MS(3) (or the internal default) timeout expired.
 ## CURLE_FTP_WEIRD_PASV_REPLY (13)
 
 libcurl failed to get a sensible result back from the server as a response to
-either a PASV or a EPSV command. The server is flawed.
+either a PASV or an EPSV command. The server is flawed.
 
 ## CURLE_FTP_WEIRD_227_FORMAT (14)
 
index c677f12f7bbf7fa402d96512335b51455d3dbd37..cd0d226efdad980ec4048f227c06b33095677165 100644 (file)
@@ -658,7 +658,7 @@ CURLcode Curl_cf_https_setup(struct Curl_easy *data,
 
   if(conn->bits.tls_enable_alpn) {
 #ifdef USE_HTTPSRR
-    /* Is there a HTTPSRR use its ALPNs here.
+    /* Is there an HTTPSRR use its ALPNs here.
      * We are here after having selected a connection to a host+port and
      * can no longer change that. Any HTTPSRR advice for other hosts and ports
      * we need to ignore. */
index 6516db56b965a978a1b3d16b382977c0340b4806..cd577e8a5e20f8e77b70405b563782d8a133c808 100644 (file)
@@ -129,7 +129,7 @@ void Curl_sspi_global_cleanup(void)
 /*
  * Curl_create_sspi_identity()
  *
- * This is used to populate a SSPI identity structure based on the supplied
+ * This is used to populate an SSPI identity structure based on the supplied
  * username and password.
  *
  * Parameters:
@@ -221,7 +221,7 @@ CURLcode Curl_create_sspi_identity(const char *userp, const char *passwdp,
 /*
  * Curl_sspi_free_identity()
  *
- * This is used to free the contents of a SSPI identifier structure.
+ * This is used to free the contents of an SSPI identifier structure.
  *
  * Parameters:
  *
index cafdb8d3bc8acd0e029f3447573252c4b06a4f5f..8fdf8ef2496fc00cb2af63c14e77fbd70b5f47ac 100644 (file)
@@ -45,7 +45,7 @@
 CURLcode Curl_sspi_global_init(void);
 void Curl_sspi_global_cleanup(void);
 
-/* This is used to populate the domain in a SSPI identity structure */
+/* This is used to populate the domain in an SSPI identity structure */
 CURLcode Curl_override_sspi_http_realm(const char *chlg,
                                        SEC_WINNT_AUTH_IDENTITY *identity);
 
index 09a31d814aa8aba6c0a2b05cb26e06f52d975dde..0aa19262f7eacd37c835be392690e2c5d2a774ff 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2716,8 +2716,8 @@ static CURLcode ftp_pp_statemachine(struct Curl_easy *data,
 #endif
 
       if(data->set.use_ssl && !conn->bits.ftp_use_control_ssl) {
-        /* We do not have a SSL/TLS control connection yet, but FTPS is
-           requested. Try a FTPS connection now */
+        /* We do not have an SSL/TLS control connection yet, but FTPS is
+           requested. Try an FTPS connection now */
 
         ftpc->count3 = 0;
         switch(data->set.ftpsslauth) {
index 9f519381f03a5c7efba057ab1dada95252dda57a..5942d313b87a2fe624d1fc45d80620630c070f13 100644 (file)
@@ -3638,7 +3638,7 @@ static CURLcode http_on_response(struct Curl_easy *data,
         /* We expect more response from HTTP/2 later */
         k->header = TRUE;
         k->headerline = 0; /* restart the header line counter */
-        k->httpversion_sent = 20; /* It's a HTTP/2 request now */
+        k->httpversion_sent = 20; /* It's an HTTP/2 request now */
         /* Any remaining `buf` bytes are already HTTP/2 and passed to
          * be processed. */
         result = Curl_http2_upgrade(data, conn, FIRSTSOCKET, buf, blen);
index 0461c80f788aa3bfeee286c3cddf5f0dc9fd2696..b84e479fcd61b9543b0707051e3770510e144b31 100644 (file)
@@ -49,7 +49,7 @@ typedef enum {
      POST_CR state. */
   CHUNK_DATA,
 
-  /* POSTLF should get a CR and then a LF and nothing else, then move back to
+  /* POSTLF should get a CR and then an LF and nothing else, then move back to
      HEX as the CRLF combination marks the end of a chunk. A missing CR is no
      big deal. */
   CHUNK_POSTLF,
@@ -64,7 +64,7 @@ typedef enum {
   CHUNK_TRAILER,
 
   /* A trailer CR has been found - next state is CHUNK_TRAILER_POSTCR.
-     Next char must be a LF */
+     Next char must be an LF */
   CHUNK_TRAILER_CR,
 
   /* A trailer LF must be found now, otherwise CHUNKE_BAD_CHUNK will be
index 4b2e6087f214cdcae8df6fa821bef4e09c77858c..fc38a5b61e0d85e8c79ea491e43b48525c2b1d0b 100644 (file)
@@ -1032,7 +1032,7 @@ static CURLcode imap_state_capability_resp(struct Curl_easy *data,
 
   (void)instate; /* no use for this yet */
 
-  /* Do we have a untagged response? */
+  /* Do we have an untagged response? */
   if(imapcode == '*') {
     line += 2;
 
index a1a34891c004b301ce1ea63aa7721c4671fedb90..bb2ec57872578a6038760b6bead040de020afc51 100644 (file)
@@ -56,7 +56,7 @@
  * Returns `dst' (as a const)
  * Note:
  *  - uses no statics
- *  - takes a unsigned char* not an in_addr as input
+ *  - takes an unsigned char* not an in_addr as input
  */
 static char *inet_ntop4(const unsigned char *src, char *dst, size_t size)
 {
index 852834ececcff1653a02f9e0d089d9a199bc6605..aa8c2d834a90c848e2fcfff1c8472e6cef199f4d 100644 (file)
@@ -874,7 +874,7 @@ static CURLcode pop3_state_capa_resp(struct Curl_easy *data, int pop3code,
   line = curlx_dyn_ptr(&pop3c->pp.recvbuf);
   len = pop3c->pp.nfinal;
 
-  /* Do we have a untagged continuation response? */
+  /* Do we have an untagged continuation response? */
   if(pop3code == '*') {
     /* Does the server support the STLS capability? */
     if(len >= 4 && !memcmp(line, "STLS", 4))
index dae870a5c9fc01e6f4505c521b72c4fa86c8c8f7..d5ddf6d0c26dac993a482ab0c7b812cbebe968a1 100644 (file)
@@ -2022,7 +2022,7 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
     break;
   case CURLOPT_SSL_CTX_DATA:
     /*
-     * Set a SSL_CTX callback parameter pointer
+     * Set an SSL_CTX callback parameter pointer
      */
 #ifdef USE_SSL
     if(Curl_ssl_supports(data, SSLSUPP_SSL_CTX)) {
@@ -2787,7 +2787,7 @@ static CURLcode setopt_func(struct Curl_easy *data, CURLoption option,
     break;
   case CURLOPT_SSL_CTX_FUNCTION:
     /*
-     * Set a SSL_CTX callback
+     * Set an SSL_CTX callback
      */
 #ifdef USE_SSL
     if(Curl_ssl_supports(data, SSLSUPP_SSL_CTX)) {
index fbab5401f859ca55a168c2e915932ef7852a78d9..d39bb58d5de78609115c9ada459eea6acca505ae 100644 (file)
@@ -601,7 +601,7 @@ static CURLcode smtp_perform_authentication(struct Curl_easy *data,
  *
  * smtp_perform_command()
  *
- * Sends a SMTP based command.
+ * Sends an SMTP based command.
  */
 static CURLcode smtp_perform_command(struct Curl_easy *data,
                                      struct smtp_conn *smtpc,
@@ -1036,7 +1036,7 @@ static CURLcode smtp_state_ehlo_resp(struct Curl_easy *data,
 
     if(smtpcode != 1) {
       if(data->set.use_ssl && !Curl_conn_is_ssl(data->conn, FIRSTSOCKET)) {
-        /* We do not have a SSL/TLS connection yet, but SSL is requested */
+        /* We do not have an SSL/TLS connection yet, but SSL is requested */
         if(smtpc->tls_supported)
           /* Switch to TLS connection now */
           result = smtp_perform_starttls(data, smtpc);
index d0182f6fe1d8d2cbe36f587dd0a137069c90f241..2761c599650fd80796abb3dc85aefd1c39d476e2 100644 (file)
@@ -242,7 +242,7 @@ CURLcode Curl_auth_create_digest_md5_message(struct Curl_easy *data,
 /*
  * Curl_override_sspi_http_realm()
  *
- * This is used to populate the domain in a SSPI identity structure
+ * This is used to populate the domain in an SSPI identity structure
  * The realm is extracted from the challenge message and used as the
  * domain if it is not already explicitly set.
  *
index 06de842084b55b9486fbda8b93f62ef896bf98ea..e2872b2522a5cd95fa48be531027d334af8dc045 100644 (file)
@@ -39,7 +39,7 @@
 /*
  * Curl_auth_build_spn()
  *
- * This is used to build a SPN string in the following formats:
+ * This is used to build an SPN string in the following formats:
  *
  * service/host@realm (Not currently used)
  * service/host       (Not used by GSS-API)
index d8459880677e43646314ddb5ccec2405bace2f2b..58b13f582c7b147ff4d4d9efd85e62cc60f928f7 100644 (file)
@@ -60,7 +60,7 @@ struct gsasldata;
  */
 bool Curl_auth_allowed_to_host(struct Curl_easy *data);
 
-/* This is used to build a SPN string */
+/* This is used to build an SPN string */
 #if !defined(USE_WINDOWS_SSPI)
 char *Curl_auth_build_spn(const char *service, const char *host,
                           const char *realm);
index bb2a0265cd30135b69500e45a80b2e03515c712d..74c36fed9437a8d3dec384719d6ec537da26d71b 100644 (file)
@@ -233,7 +233,7 @@ static void unload_file(gnutls_datum_t data)
 }
 
 
-/* this function does a SSL/TLS (re-)handshake */
+/* this function does an SSL/TLS (re-)handshake */
 static CURLcode handshake(struct Curl_cfilter *cf,
                           struct Curl_easy *data)
 {
index 8f4880cf8e4b3802c1b7d7b9c69891828e162517..8487d43e8c6b5facab07a52112b6c43ca979e21a 100644 (file)
@@ -94,7 +94,7 @@ Curl_tls_keylog_write_line(const char *line)
 
   linelen = strlen(line);
   if(linelen == 0 || linelen > sizeof(buf) - 2) {
-    /* Empty line or too big to fit in a LF and NUL. */
+    /* Empty line or too big to fit in an LF and NUL. */
     return FALSE;
   }
 
index a00a2256163fe21064d689a751c7f6be93415192..ec82abf547f08b9914e4f4a05c353f454f737dd7 100644 (file)
@@ -61,7 +61,7 @@ bool Curl_tls_keylog_write(const char *label,
                            const unsigned char *secret, size_t secretlen);
 
 /*
- * Appends a line to the key log file, ensure it is terminated by a LF.
+ * Appends a line to the key log file, ensure it is terminated by an LF.
  * Returns true iff the key log file is open and a valid line was provided.
  */
 bool Curl_tls_keylog_write_line(const char *line);
index ffdae239953759d8863093ba469a1428744cb978..69078408865677a0cc83b05f1c5b3dc628c850f3 100644 (file)
@@ -4048,7 +4048,7 @@ CURLcode Curl_ossl_ctx_init(struct ossl_ctx *octx,
      CVE-2010-4180 when using previous OpenSSL versions we no longer enable
      this option regardless of OpenSSL version and SSL_OP_ALL definition.
 
-     OpenSSL added a work-around for a SSL 3.0/TLS 1.0 CBC vulnerability:
+     OpenSSL added a work-around for an SSL 3.0/TLS 1.0 CBC vulnerability:
      https://web.archive.org/web/20240114184648/openssl.org/~bodo/tls-cbc.txt.
      In 0.9.6e they added a bit to SSL_OP_ALL that _disables_ that work-around
      despite the fact that SSL_OP_ALL is documented to do "rather harmless"
index c95fa42af157af0298330e39aa0cb67087f1db94..eef50805e4e13a05a596095934753f4d530bb8ad 100644 (file)
@@ -113,7 +113,7 @@ CURLcode Curl_ssl_scache_add_obj(struct Curl_cfilter *cf,
                                  void *sobj,
                                  Curl_ssl_scache_obj_dtor *sobj_dtor_cb);
 
-/* All about a SSL session ticket */
+/* All about an SSL session ticket */
 struct Curl_ssl_session {
   const void *sdata;           /* session ticket data, plain bytes */
   size_t sdata_len;            /* number of bytes in sdata */
index d94a330b2cd0039b6f933815b41fc3d2e623e36a..42cf40c31dfbbc617f4b18cd38ac99e65f708f32 100644 (file)
@@ -23,7 +23,7 @@ swsclose
 http
 </server>
 <name>
-HTTP GET with a invalid HTTP/1 response line start
+HTTP GET with an invalid HTTP/1 response line start
 </name>
 <command>
 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http0.9
index a8740187f444a4b98a1c59a6d7f327fa51aa06f7..0401f796b417ead8aa8a93ad47a8bceecb81639d 100644 (file)
@@ -33,7 +33,7 @@ h2c
 http
 </server>
 <name>
-HTTP/1 doing HTTP/2 Upgrade: getting a HTTP/2 101 response
+HTTP/1 doing HTTP/2 Upgrade: getting an HTTP/2 101 response
 </name>
 <command>
 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http2
index d2b3e159906c5a625aa583949ffa9f997633f1d8..8d90e3e2b016da8ee8f1e5a56f3b2ef05e7359f4 100644 (file)
@@ -30,7 +30,7 @@ ftp
 proxy
 </features>
 <name>
-HTTP PUT to a FTP URL with username+password - over HTTP proxy
+HTTP PUT to an FTP URL with username+password - over HTTP proxy
 </name>
 <command>
 -x http://%HOSTIP:%HTTPPORT ftp://daniel:mysecret@host.com/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt
index ba9f6d9eb4c64c96ccc3290bf0307751cebac63f..93d6c05eb21a78eefa27ec5c53f7a842aa32e1ff 100644 (file)
@@ -667,7 +667,7 @@ def parse_size(s):
 
 def main():
     parser = argparse.ArgumentParser(prog='scorecard', description="""
-        Run a range of tests to give a scorecard for a HTTP protocol
+        Run a range of tests to give a scorecard for an HTTP protocol
         'h3' or 'h2' implementation in curl.
         """)
     parser.add_argument("-v", "--verbose", action='count', default=1,
index b08535ce5a086bd1520a1ab3f51a63c9995c7ccc..1d4a4a0ae2f8f78b43a2071b69c37c53b1708d23 100644 (file)
@@ -77,7 +77,7 @@ class TestReuse:
 
     @pytest.mark.skipif(condition=not Env.have_h3(), reason="h3 not supported")
     def test_12_03_as_follow_h2h3(self, env: Env, httpd, configures_httpd, nghttpx):
-        # write a alt-svc file that advises h3 instead of h2
+        # write an alt-svc file that advises h3 instead of h2
         asfile = os.path.join(env.gen_dir, 'alt-svc-12_03.txt')
         self.create_asfile(asfile, f'h2 {env.domain1} {env.https_port} h3 {env.domain1} {env.h3_port}')
         curl = CurlClient(env=env)
@@ -91,7 +91,7 @@ class TestReuse:
     @pytest.mark.skipif(condition=not Env.have_h3(), reason="h3 not supported")
     def test_12_04_as_follow_h3h2(self, env: Env, httpd, configures_httpd, nghttpx):
         count = 2
-        # write a alt-svc file the advises h2 instead of h3
+        # write an alt-svc file the advises h2 instead of h3
         asfile = os.path.join(env.gen_dir, 'alt-svc-12_04.txt')
         ts = datetime.now() + timedelta(hours=24)
         expires = f'{ts.year:04}{ts.month:02}{ts.day:02} {ts.hour:02}:{ts.minute:02}:{ts.second:02}'
@@ -113,7 +113,7 @@ class TestReuse:
     def test_12_05_as_follow_h3h1(self, env: Env, httpd, configures_httpd, nghttpx):
         # With '--http3` an Alt-Svc redirection from h3 to h1 is allowed
         count = 2
-        # write a alt-svc file the advises h1 instead of h3
+        # write an alt-svc file the advises h1 instead of h3
         asfile = os.path.join(env.gen_dir, 'alt-svc-12_05.txt')
         ts = datetime.now() + timedelta(hours=24)
         expires = f'{ts.year:04}{ts.month:02}{ts.day:02} {ts.hour:02}:{ts.minute:02}:{ts.second:02}'
@@ -135,7 +135,7 @@ class TestReuse:
     def test_12_06_as_ignore_h3h1(self, env: Env, httpd, configures_httpd, nghttpx):
         # With '--http3-only` an Alt-Svc redirection from h3 to h1 is ignored
         count = 2
-        # write a alt-svc file the advises h1 instead of h3
+        # write an alt-svc file the advises h1 instead of h3
         asfile = os.path.join(env.gen_dir, 'alt-svc-12_05.txt')
         ts = datetime.now() + timedelta(hours=24)
         expires = f'{ts.year:04}{ts.month:02}{ts.day:02} {ts.hour:02}:{ts.minute:02}:{ts.second:02}'
@@ -156,7 +156,7 @@ class TestReuse:
     @pytest.mark.skipif(condition=not Env.have_h3(), reason="h3 not supported")
     def test_12_07_as_ignore_h2h3(self, env: Env, httpd, configures_httpd, nghttpx):
         # With '--http2` an Alt-Svc redirection from h2 to h3 is ignored
-        # write a alt-svc file that advises h3 instead of h2
+        # write an alt-svc file that advises h3 instead of h2
         asfile = os.path.join(env.gen_dir, 'alt-svc-12_03.txt')
         self.create_asfile(asfile, f'h2 {env.domain1} {env.https_port} h3 {env.domain1} {env.h3_port}')
         curl = CurlClient(env=env)
index fe40a3ba09ef1c6935d58cc2d86c1dbe234e11c5..3d6919e298eca388b92ce4662d4f474831028dc3 100644 (file)
@@ -29,7 +29,7 @@
  *  HTTP1 amd HTTP2 (no multiplexing) two transfers (expected two descriptors),
  *  HTTP2 with multiplexing (expected one descriptors)
  *  Improper inputs to the API result in CURLM_BAD_FUNCTION_ARGUMENT.
- *  Sending a empty ufds, and size = 0 will return the number of fds needed.
+ *  Sending an empty ufds, and size = 0 will return the number of fds needed.
  *  Sending a non-empty ufds, but smaller than the fds needed will result in a
  *    CURLM_OUT_OF_MEMORY, and a number of fds that is >= to the number needed.
  *
index f23a2454c2209c04893889f211b5d94d3dda61d0..3bc2fa5ed97d3c429edc5e0ea59eac1d7961aec4 100644 (file)
@@ -410,7 +410,7 @@ static int test_rlimit(int keep_open)
     }
   }
 
-#endif /* using a FD_SETSIZE bound select() */
+#endif /* using an FD_SETSIZE bound select() */
 
   /*
    * Old or 'backwards compatible' implementations of stdio do not allow
index 96deb91f774e11b211fdab1b37c46a8734e74e82..1e4d3839aea0d9769052da9d191750c6ff7b6e76 100644 (file)
@@ -424,7 +424,7 @@ static int test_rlimit(int keep_open)
     }
   }
 
-#endif /* using a FD_SETSIZE bound select() */
+#endif /* using an FD_SETSIZE bound select() */
 
   /*
    * Old or 'backwards compatible' implementations of stdio do not allow
index 04aba1e7f5baa38d3ee9a79f87faf80d0f2a5620..2ab9aa33324fbc0c1108659c004220c862e90916 100644 (file)
@@ -82,7 +82,7 @@ static const struct testit headers[] = {
   { "2.example.com", NULL,
     "max-age=\"21536000\"; includeSubDomains; includeSubDomains;",
     CURLE_BAD_FUNCTION_ARGUMENT },
-  /* use a unknown directive "include" that should be ignored */
+  /* use an unknown directive "include" that should be ignored */
   { "3.example.com", NULL, "max-age=\"21536000\"; include; includeSubDomains;",
     CURLE_OK },
   /* remove the "3.example.com" one, should still match the example.com */