badwords: catch and fix more variants of NN-bit

Closes #20304
This commit is contained in:
Viktor Szakats 2026-01-11 14:50:27 +01:00
parent 60ab58a8a5
commit 4651d4c76b
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
20 changed files with 29 additions and 32 deletions

View file

@ -62,7 +62,7 @@ SPDX-License-Identifier: curl
to use to allow the server to use a weak cipher for you.
Note that these weak ciphers are identified as flawed. For example, this
includes symmetric ciphers with less than 128 bit keys and RC4.
includes symmetric ciphers with less than 128-bit keys and RC4.
Schannel in Windows XP is not able to connect to servers that no longer
support the legacy handshakes and algorithms used by those versions, so we

View file

@ -118,7 +118,7 @@ that you have a matching struct for in the header, as you tell libcurl your
*version* is just an ASCII string for the libcurl version.
*version_num* is a 24 bit number created like this: \<8 bits major number\> |
*version_num* is a 24-bit number created like this: \<8 bits major number\> |
\<8 bits minor number\> | \<8 bits patch number\>. Version 7.9.8 is therefore
returned as 0x070908.

View file

@ -37,7 +37,7 @@ protocol.
Usually, you just let the URL decide which port to use but this allows the
application to override that.
While this option accepts a 'long', a port number is an unsigned 16 bit number
While this option accepts a 'long', a port number is an unsigned 16-bit number
and therefore using a port number lower than zero or over 65535 causes a
**CURLE_BAD_FUNCTION_ARGUMENT** error.

View file

@ -38,7 +38,7 @@ Disabling this option, setting it to zero, makes it not specified which makes
libcurl use the default proxy port number or the port number specified in the
proxy URL string.
While this accepts a 'long', the port number is 16 bit so it cannot be larger
While this accepts a 'long', the port number is 16-bit so it cannot be larger
than 65535.
# DEFAULT

View file

@ -31,7 +31,7 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5,
# DESCRIPTION
Pass a char pointer pointing to a string containing 32 hexadecimal digits. The
string should be the 128 bit MD5 checksum of the remote host's public key, and
string should be the 128-bit MD5 checksum of the remote host's public key, and
libcurl aborts the connection to the host unless the MD5 checksum match.
MD5 is a weak algorithm. We strongly recommend using