mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
spelling fixes
Detected using the `codespell` tool (version 1.13.0). Also secure and fix an URL.
This commit is contained in:
parent
71c39f2965
commit
4bd91bc474
@ -34,7 +34,7 @@ addons:
|
|||||||
- libssh-dev
|
- libssh-dev
|
||||||
- krb5-user
|
- krb5-user
|
||||||
- autopoint # for libpsl that needs autoreconf that uses gettext that needs it
|
- autopoint # for libpsl that needs autoreconf that uses gettext that needs it
|
||||||
- libunistring-dev # for libidn2 neeed by libpsl
|
- libunistring-dev # for libidn2 needed by libpsl
|
||||||
- libnss3-dev
|
- libnss3-dev
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -180,7 +180,7 @@ MAIL ETIQUETTE
|
|||||||
encoded HTTP Basic auth headers.
|
encoded HTTP Basic auth headers.
|
||||||
|
|
||||||
This public nature of the curl mailing lists makes automatically inserted mail
|
This public nature of the curl mailing lists makes automatically inserted mail
|
||||||
footers about mails being "private" or "only meant for the receipient" or
|
footers about mails being "private" or "only meant for the recipient" or
|
||||||
similar even more silly than usual. Because they are absolutely not private
|
similar even more silly than usual. Because they are absolutely not private
|
||||||
when sent to a public mailing list.
|
when sent to a public mailing list.
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ endif
|
|||||||
CFLAGS += -align 4
|
CFLAGS += -align 4
|
||||||
else
|
else
|
||||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
||||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
# to avoid the __init_* / __deinit_* woes don't use prelude from NDK
|
||||||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
||||||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
||||||
CFLAGS += -align 1
|
CFLAGS += -align 1
|
||||||
@ -159,7 +159,7 @@ else
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
# PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
||||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
# to avoid the __init_* / __deinit_* woes don't use prelude from NDK
|
||||||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
||||||
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
||||||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
||||||
|
@ -159,7 +159,7 @@ static char *ia5string(ASN1_IA5STRING *ia5)
|
|||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A conveniance routine to get an access URI. */
|
/* A convenience routine to get an access URI. */
|
||||||
static unsigned char *my_get_ext(X509 *cert, const int type,
|
static unsigned char *my_get_ext(X509 *cert, const int type,
|
||||||
int extensiontype)
|
int extensiontype)
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,7 @@ int main(void)
|
|||||||
/* Build the mime message. */
|
/* Build the mime message. */
|
||||||
mime = curl_mime_init(curl);
|
mime = curl_mime_init(curl);
|
||||||
|
|
||||||
/* The inline part is an alterative proposing the html and the text
|
/* The inline part is an alternative proposing the html and the text
|
||||||
versions of the e-mail. */
|
versions of the e-mail. */
|
||||||
alt = curl_mime_init(curl);
|
alt = curl_mime_init(curl);
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ static void *run_thread(void *ptr)
|
|||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_db);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_db);
|
||||||
curl_easy_perform(curl); /* ignores error */
|
curl_easy_perform(curl); /* ignores error */
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
fprintf(stderr, "Tread %d transfer %d\n", u->threadno, i);
|
fprintf(stderr, "Thread %d transfer %d\n", u->threadno, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -428,7 +428,7 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t,
|
|||||||
* == or whatsoever.
|
* == or whatsoever.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* XXX: should evaluate to true iff expr is a pointer */
|
/* XXX: should evaluate to true if expr is a pointer */
|
||||||
#define _curl_is_any_ptr(expr) \
|
#define _curl_is_any_ptr(expr) \
|
||||||
(sizeof(expr) == sizeof(void *))
|
(sizeof(expr) == sizeof(void *))
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ endif
|
|||||||
CFLAGS += -align 4
|
CFLAGS += -align 4
|
||||||
else
|
else
|
||||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
||||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
# to avoid the __init_* / __deinit_* woes don't use prelude from NDK
|
||||||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
||||||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
||||||
CFLAGS += -align 1
|
CFLAGS += -align 1
|
||||||
@ -192,7 +192,7 @@ else
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
||||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
# to avoid the __init_* / __deinit_* woes don't use prelude from NDK
|
||||||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
||||||
# PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
# PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
||||||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
* Make this function match POSIX. Test 1307 includes a set of test patterns
|
* Make this function match POSIX. Test 1307 includes a set of test patterns
|
||||||
* that returns different results with a POSIX fnmatch() than with this
|
* that returns different results with a POSIX fnmatch() than with this
|
||||||
* implemenation and this is considered a bug where POSIX is the guiding
|
* implementation and this is considered a bug where POSIX is the guiding
|
||||||
* light.
|
* light.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ static CURLcode win32_init(void)
|
|||||||
res = WSAStartup(wVersionRequested, &wsaData);
|
res = WSAStartup(wVersionRequested, &wsaData);
|
||||||
|
|
||||||
if(res != 0)
|
if(res != 0)
|
||||||
/* Tell the user that we couldn't find a useable */
|
/* Tell the user that we couldn't find a usable */
|
||||||
/* winsock.dll. */
|
/* winsock.dll. */
|
||||||
return CURLE_FAILED_INIT;
|
return CURLE_FAILED_INIT;
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ static CURLcode win32_init(void)
|
|||||||
|
|
||||||
if(LOBYTE(wsaData.wVersion) != LOBYTE(wVersionRequested) ||
|
if(LOBYTE(wsaData.wVersion) != LOBYTE(wVersionRequested) ||
|
||||||
HIBYTE(wsaData.wVersion) != HIBYTE(wVersionRequested) ) {
|
HIBYTE(wsaData.wVersion) != HIBYTE(wVersionRequested) ) {
|
||||||
/* Tell the user that we couldn't find a useable */
|
/* Tell the user that we couldn't find a usable */
|
||||||
|
|
||||||
/* winsock.dll. */
|
/* winsock.dll. */
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
|
@ -461,7 +461,7 @@ static CURLcode file_do(struct connectdata *conn, bool *done)
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
/* Adjust the start offset in case we want to get the N last bytes
|
/* Adjust the start offset in case we want to get the N last bytes
|
||||||
* of the stream iff the filesize could be determined */
|
* of the stream if the filesize could be determined */
|
||||||
if(data->state.resume_from < 0) {
|
if(data->state.resume_from < 0) {
|
||||||
if(!fstated) {
|
if(!fstated) {
|
||||||
failf(data, "Can't get the size of file.");
|
failf(data, "Can't get the size of file.");
|
||||||
|
@ -458,7 +458,7 @@ CURLMcode curl_multi_add_handle(struct Curl_multi *multi,
|
|||||||
happens if the lastcall time is set to the same time when the handle is
|
happens if the lastcall time is set to the same time when the handle is
|
||||||
removed as when the next handle is added, as then the check in
|
removed as when the next handle is added, as then the check in
|
||||||
update_timer() that prevents calling the application multiple times with
|
update_timer() that prevents calling the application multiple times with
|
||||||
the same timer infor will not trigger and then the new handle's timeout
|
the same timer info will not trigger and then the new handle's timeout
|
||||||
will not be notified to the app.
|
will not be notified to the app.
|
||||||
|
|
||||||
The work-around is thus simply to clear the 'lastcall' variable to force
|
The work-around is thus simply to clear the 'lastcall' variable to force
|
||||||
|
@ -1017,7 +1017,7 @@ static void sendsuboption(struct connectdata *conn, int option)
|
|||||||
CURL_SB_ACCUM(tn, CURL_IAC);
|
CURL_SB_ACCUM(tn, CURL_IAC);
|
||||||
CURL_SB_ACCUM(tn, CURL_SB);
|
CURL_SB_ACCUM(tn, CURL_SB);
|
||||||
CURL_SB_ACCUM(tn, CURL_TELOPT_NAWS);
|
CURL_SB_ACCUM(tn, CURL_TELOPT_NAWS);
|
||||||
/* We must deal either with litte or big endian processors */
|
/* We must deal either with little or big endian processors */
|
||||||
/* Window size must be sent according to the 'network order' */
|
/* Window size must be sent according to the 'network order' */
|
||||||
x = htons(tn->subopt_wsx);
|
x = htons(tn->subopt_wsx);
|
||||||
y = htons(tn->subopt_wsy);
|
y = htons(tn->subopt_wsy);
|
||||||
|
@ -1348,7 +1348,7 @@ struct DynamicStatic {
|
|||||||
char *url; /* work URL, copied from UserDefined */
|
char *url; /* work URL, copied from UserDefined */
|
||||||
bool url_alloc; /* URL string is malloc()'ed */
|
bool url_alloc; /* URL string is malloc()'ed */
|
||||||
char *referer; /* referer string */
|
char *referer; /* referer string */
|
||||||
bool referer_alloc; /* referer sting is malloc()ed */
|
bool referer_alloc; /* referer string is malloc()ed */
|
||||||
struct curl_slist *cookielist; /* list of cookie files set by
|
struct curl_slist *cookielist; /* list of cookie files set by
|
||||||
curl_easy_setopt(COOKIEFILE) calls */
|
curl_easy_setopt(COOKIEFILE) calls */
|
||||||
struct curl_slist *resolve; /* set to point to the set.resolve list when
|
struct curl_slist *resolve; /* set to point to the set.resolve list when
|
||||||
|
@ -351,7 +351,7 @@ $ endif
|
|||||||
$ endif
|
$ endif
|
||||||
$ endif
|
$ endif
|
||||||
$!
|
$!
|
||||||
$! Filenames with $ in them are VMS special and do not need to be lowercased.
|
$! Filenames with $ in them are VMS special and do not need to be lowercase.
|
||||||
$! --------------------------------------------------------------------------
|
$! --------------------------------------------------------------------------
|
||||||
$ if f$locate("$", pathname) .lt. f$length(pathname) then goto inst_file_loop
|
$ if f$locate("$", pathname) .lt. f$length(pathname) then goto inst_file_loop
|
||||||
$!
|
$!
|
||||||
|
@ -60,7 +60,7 @@ $!
|
|||||||
$! We want detailed build logs.
|
$! We want detailed build logs.
|
||||||
$ clist = "/list/show=(expan,includ)"
|
$ clist = "/list/show=(expan,includ)"
|
||||||
$!
|
$!
|
||||||
$! We want full symbol names in exact case. Need a commmon
|
$! We want full symbol names in exact case. Need a common
|
||||||
$! repository for all directories.
|
$! repository for all directories.
|
||||||
$ cnames = "/names=(shortened,as_is)/repository=''base_dir'"
|
$ cnames = "/names=(shortened,as_is)/repository=''base_dir'"
|
||||||
$!
|
$!
|
||||||
|
@ -156,7 +156,7 @@ rem ***************************************************************************
|
|||||||
|
|
||||||
if not defined PERL_PATH (
|
if not defined PERL_PATH (
|
||||||
rem Check we have Perl in our path
|
rem Check we have Perl in our path
|
||||||
rem using !! below as %% was having \Microsoft was unexecpted error.
|
rem using !! below as %% was having \Microsoft was unexpected error.
|
||||||
echo !PATH! | findstr /I /C:"\Perl" 1>nul
|
echo !PATH! | findstr /I /C:"\Perl" 1>nul
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
rem It isn't so check we have it installed and set the path if it is
|
rem It isn't so check we have it installed and set the path if it is
|
||||||
|
@ -47,7 +47,7 @@ create the thread local storage and that could be a problem for LoadLibrary.
|
|||||||
Regarding the options that were added via C_EXTRA_FLAGS:
|
Regarding the options that were added via C_EXTRA_FLAGS:
|
||||||
|
|
||||||
FP_MAX_BITS=16384
|
FP_MAX_BITS=16384
|
||||||
http://www.yassl.com/forums/topic423-cacertorgs-ca-cert-verify-failed-but-withdisablefastmath-it-works.html
|
https://web.archive.org/web/20150218183550/www.yassl.com/forums/topic423-cacertorgs-ca-cert-verify-failed-but-withdisablefastmath-it-works.html
|
||||||
"Since root.crt uses a 4096-bit RSA key, you'll need to increase the fastmath
|
"Since root.crt uses a 4096-bit RSA key, you'll need to increase the fastmath
|
||||||
buffer size. You can do this using the define:
|
buffer size. You can do this using the define:
|
||||||
FP_MAX_BITS and setting it to 8192."
|
FP_MAX_BITS and setting it to 8192."
|
||||||
|
@ -178,7 +178,7 @@ endif
|
|||||||
CFLAGS += -align 4
|
CFLAGS += -align 4
|
||||||
else
|
else
|
||||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
||||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
# to avoid the __init_* / __deinit_* woes don't use prelude from NDK
|
||||||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
||||||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
||||||
CFLAGS += -align 1
|
CFLAGS += -align 1
|
||||||
@ -201,7 +201,7 @@ else
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
# PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
||||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
# to avoid the __init_* / __deinit_* woes don't use prelude from NDK
|
||||||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
||||||
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
||||||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
||||||
|
@ -11,7 +11,7 @@ LIST
|
|||||||
# Server-side
|
# Server-side
|
||||||
<reply>
|
<reply>
|
||||||
<servercmd>
|
<servercmd>
|
||||||
# include the '.\r\n' 3-byte trailer to end the transfer poperly!
|
# include the '.\r\n' 3-byte trailer to end the transfer properly!
|
||||||
REPLY LIST +OK 851 100\r\n.
|
REPLY LIST +OK 851 100\r\n.
|
||||||
</servercmd>
|
</servercmd>
|
||||||
</reply>
|
</reply>
|
||||||
|
@ -904,7 +904,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||||||
char *cmd = NULL;
|
char *cmd = NULL;
|
||||||
size_t cmdsize = 0;
|
size_t cmdsize = 0;
|
||||||
FILE *dump;
|
FILE *dump;
|
||||||
bool persistant = TRUE;
|
bool persistent = TRUE;
|
||||||
bool sendfailure = FALSE;
|
bool sendfailure = FALSE;
|
||||||
size_t responsesize;
|
size_t responsesize;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
@ -1046,7 +1046,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||||||
connection will be closed after the data has been sent to the requesting
|
connection will be closed after the data has been sent to the requesting
|
||||||
client... */
|
client... */
|
||||||
if(strstr(buffer, "swsclose") || !count) {
|
if(strstr(buffer, "swsclose") || !count) {
|
||||||
persistant = FALSE;
|
persistent = FALSE;
|
||||||
logmsg("connection close instruction \"swsclose\" found in response");
|
logmsg("connection close instruction \"swsclose\" found in response");
|
||||||
}
|
}
|
||||||
if(strstr(buffer, "swsbounce")) {
|
if(strstr(buffer, "swsbounce")) {
|
||||||
@ -1176,7 +1176,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||||||
} while(ptr && *ptr);
|
} while(ptr && *ptr);
|
||||||
}
|
}
|
||||||
free(cmd);
|
free(cmd);
|
||||||
req->open = persistant;
|
req->open = persistent;
|
||||||
|
|
||||||
prevtestno = req->testno;
|
prevtestno = req->testno;
|
||||||
prevpartno = req->partno;
|
prevpartno = req->partno;
|
||||||
@ -1430,7 +1430,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(req.open)
|
if(req.open)
|
||||||
logmsg("=> persistant connection request ended, awaits new request");
|
logmsg("=> persistent connection request ended, awaits new request");
|
||||||
/* if we got a CONNECT, loop and get another request as well! */
|
/* if we got a CONNECT, loop and get another request as well! */
|
||||||
} while(req.open || (req.testno == DOCNUMBER_CONNECT));
|
} while(req.open || (req.testno == DOCNUMBER_CONNECT));
|
||||||
|
|
||||||
|
@ -1065,7 +1065,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||||||
char *cmd = NULL;
|
char *cmd = NULL;
|
||||||
size_t cmdsize = 0;
|
size_t cmdsize = 0;
|
||||||
FILE *dump;
|
FILE *dump;
|
||||||
bool persistant = TRUE;
|
bool persistent = TRUE;
|
||||||
bool sendfailure = FALSE;
|
bool sendfailure = FALSE;
|
||||||
size_t responsesize;
|
size_t responsesize;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
@ -1196,7 +1196,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||||||
connection will be closed after the data has been sent to the requesting
|
connection will be closed after the data has been sent to the requesting
|
||||||
client... */
|
client... */
|
||||||
if(strstr(buffer, "swsclose") || !count) {
|
if(strstr(buffer, "swsclose") || !count) {
|
||||||
persistant = FALSE;
|
persistent = FALSE;
|
||||||
logmsg("connection close instruction \"swsclose\" found in response");
|
logmsg("connection close instruction \"swsclose\" found in response");
|
||||||
}
|
}
|
||||||
if(strstr(buffer, "swsbounce")) {
|
if(strstr(buffer, "swsbounce")) {
|
||||||
@ -1313,7 +1313,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||||||
} while(ptr && *ptr);
|
} while(ptr && *ptr);
|
||||||
}
|
}
|
||||||
free(cmd);
|
free(cmd);
|
||||||
req->open = use_gopher?FALSE:persistant;
|
req->open = use_gopher?FALSE:persistent;
|
||||||
|
|
||||||
prevtestno = req->testno;
|
prevtestno = req->testno;
|
||||||
prevpartno = req->partno;
|
prevpartno = req->partno;
|
||||||
@ -1968,7 +1968,7 @@ static int service_connection(curl_socket_t msgsock, struct httprequest *req,
|
|||||||
/* if we got a CONNECT, loop and get another request as well! */
|
/* if we got a CONNECT, loop and get another request as well! */
|
||||||
|
|
||||||
if(req->open) {
|
if(req->open) {
|
||||||
logmsg("=> persistant connection request ended, awaits new request\n");
|
logmsg("=> persistent connection request ended, awaits new request\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user