tidy-up: more whitespace

Closes #14014
This commit is contained in:
Viktor Szakats 2024-06-25 13:12:30 +02:00
parent def99d8507
commit 2d5aea9c93
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
6 changed files with 1541 additions and 1542 deletions

View File

@ -110,8 +110,8 @@ endif()
option(CURL_LTO "Turn on compiler Link Time Optimizations" OFF) option(CURL_LTO "Turn on compiler Link Time Optimizations" OFF)
cmake_dependent_option(ENABLE_THREADED_RESOLVER "Set to ON to enable threaded DNS lookup" cmake_dependent_option(ENABLE_THREADED_RESOLVER "Set to ON to enable threaded DNS lookup"
ON "NOT ENABLE_ARES" ON "NOT ENABLE_ARES"
OFF) OFF)
include(PickyWarnings) include(PickyWarnings)

View File

@ -20,4 +20,3 @@ When asked to do parallel transfers, using --parallel, this option controls
the maximum amount of transfers to do simultaneously. the maximum amount of transfers to do simultaneously.
The default is 50. 300 is the largest supported value. The default is 50. 300 is the largest supported value.

File diff suppressed because it is too large Load Diff

View File

@ -39,96 +39,96 @@
! !
! If you update this file also update curlmsg_vms.h so that they are in sync ! If you update this file also update curlmsg_vms.h so that they are in sync
! !
.TITLE CURLMSG Message files .TITLE CURLMSG Message files
.FACILITY CURL,1793 /PREFIX=CURL_ .FACILITY CURL,1793 /PREFIX=CURL_
.BASE 1 .BASE 1
.SEVERITY SUCCESS .SEVERITY SUCCESS
OK <normal successful completion> OK <normal successful completion>
.SEVERITY ERROR .SEVERITY ERROR
UNSUPPORTED_PROTOCOL <unsupported protocol> UNSUPPORTED_PROTOCOL <unsupported protocol>
FAILED_INIT <failed init> FAILED_INIT <failed init>
URL_MALFORMAT <URL malformat> URL_MALFORMAT <URL malformat>
OBSOLETE4 <obsolete error code> OBSOLETE4 <obsolete error code>
COULDNT_RESOLVE_PROXY <could not resolve proxy> COULDNT_RESOLVE_PROXY <could not resolve proxy>
COULDNT_RESOLVE_HOST <could not resolve host> COULDNT_RESOLVE_HOST <could not resolve host>
COULDNT_CONNECT <could not connect> COULDNT_CONNECT <could not connect>
WEIRD_SERVER_REPLY <weird server reply> WEIRD_SERVER_REPLY <weird server reply>
FTP_ACCESS_DENIED <FTP access denied> FTP_ACCESS_DENIED <FTP access denied>
OBSOLETE10 <obsolete error code> OBSOLETE10 <obsolete error code>
FTP_WEIRD_PASS_REPLY <FTP weird PASS reply> FTP_WEIRD_PASS_REPLY <FTP weird PASS reply>
OBSOLETE12 <obsolete error code> OBSOLETE12 <obsolete error code>
FTP_WEIRD_PASV_REPLY <FTP weird PASV reply> FTP_WEIRD_PASV_REPLY <FTP weird PASV reply>
FTP_WEIRD_227_FORMAT <FTP weird 227 format> FTP_WEIRD_227_FORMAT <FTP weird 227 format>
FTP_CANT_GET_HOST <FTP can not get host> FTP_CANT_GET_HOST <FTP can not get host>
OBSOLETE16 <obsolete error code> OBSOLETE16 <obsolete error code>
FTP_COULDNT_SET_TYPE <FTP could not set type> FTP_COULDNT_SET_TYPE <FTP could not set type>
PARTIAL_FILE <partial file> PARTIAL_FILE <partial file>
FTP_COULDNT_RETR_FILE <FTP could not RETR file> FTP_COULDNT_RETR_FILE <FTP could not RETR file>
OBSOLETE20 <obsolete error code> OBSOLETE20 <obsolete error code>
QUOTE_ERROR <quote command error> QUOTE_ERROR <quote command error>
HTTP_RETURNED_ERROR <HTTP returned error> HTTP_RETURNED_ERROR <HTTP returned error>
WRITE_ERROR <write error> WRITE_ERROR <write error>
OBSOLETE24 <obsolete error code> OBSOLETE24 <obsolete error code>
UPLOAD_FAILED <failed upload command> UPLOAD_FAILED <failed upload command>
READ_ERROR <read error, could not open/read file> READ_ERROR <read error, could not open/read file>
OUT_OF_MEMORY <out of memory> OUT_OF_MEMORY <out of memory>
OPERATION_TIMEOUTED <operation timed out, timeout time was reached> OPERATION_TIMEOUTED <operation timed out, timeout time was reached>
OBSOLETE29 <obsolete error code> OBSOLETE29 <obsolete error code>
FTP_PORT_FAILED <FTP PORT operation failed> FTP_PORT_FAILED <FTP PORT operation failed>
FTP_COULDNT_USE_REST <FTP REST command failed> FTP_COULDNT_USE_REST <FTP REST command failed>
OBSOLETE32 <obsolete error code> OBSOLETE32 <obsolete error code>
RANGE_ERROR <RANGE command error> RANGE_ERROR <RANGE command error>
HTTP_POST_ERROR <HTTP POST error> HTTP_POST_ERROR <HTTP POST error>
SSL_CONNECT_ERROR <SSL connect error> SSL_CONNECT_ERROR <SSL connect error>
BAD_DOWNLOAD_RESUME <bad download resume> BAD_DOWNLOAD_RESUME <bad download resume>
FILE_COULDNT_READ_FILE <FILE could not read file> FILE_COULDNT_READ_FILE <FILE could not read file>
LDAP_CANNOT_BIND <LDAP cannot bind> LDAP_CANNOT_BIND <LDAP cannot bind>
LDAP_SEARCH_FAILED <LDAP search failed> LDAP_SEARCH_FAILED <LDAP search failed>
OBSOLETE40 <obsolete error code> OBSOLETE40 <obsolete error code>
FUNCTION_NOT_FOUND <function not found> FUNCTION_NOT_FOUND <function not found>
ABORTED_BY_CALLBACK <aborted by callback> ABORTED_BY_CALLBACK <aborted by callback>
BAD_FUNCTION_ARGUMENT <bad function argument> BAD_FUNCTION_ARGUMENT <bad function argument>
OBSOLETE44 <obsolete error code> OBSOLETE44 <obsolete error code>
INTERFACE_FAILED <CURLOPT_INTERFACE failed> INTERFACE_FAILED <CURLOPT_INTERFACE failed>
OBSOLETE46 <obsolete error code> OBSOLETE46 <obsolete error code>
TOO_MANY_REDIRECTS <too many redirects> TOO_MANY_REDIRECTS <too many redirects>
UNKNOWN_TELNET_OPTION <unknown TELNET option> UNKNOWN_TELNET_OPTION <unknown TELNET option>
TELNET_OPTION_SYNTAX <malformed TELNET option syntax> TELNET_OPTION_SYNTAX <malformed TELNET option syntax>
OBSOLETE50 <obsolete error code> OBSOLETE50 <obsolete error code>
PEER_FAILED_VERIF <peer certificate or fingerprint failed> PEER_FAILED_VERIF <peer certificate or fingerprint failed>
GOT_NOTHING <got nothing> GOT_NOTHING <got nothing>
SSL_ENGINE_NOTFOUND <SSL crypto engine not found> SSL_ENGINE_NOTFOUND <SSL crypto engine not found>
SSL_ENGINE_SETFAILED <SSL can not set SSL crypto engine as default> SSL_ENGINE_SETFAILED <SSL can not set SSL crypto engine as default>
SEND_ERROR <SEND error, failure sending network data> SEND_ERROR <SEND error, failure sending network data>
RECV_ERROR <RECV error, failure receiving network data> RECV_ERROR <RECV error, failure receiving network data>
OBSOLETE57 <obsolete error code> OBSOLETE57 <obsolete error code>
SSL_CERTPROBLEM <SSL problem with the local certificate> SSL_CERTPROBLEM <SSL problem with the local certificate>
SSL_CIPHER <SSL CIPHER, could not use specified cipher> SSL_CIPHER <SSL CIPHER, could not use specified cipher>
SSL_CACERT <SSL CACERT, problem with the CA cert (path?)> SSL_CACERT <SSL CACERT, problem with the CA cert (path?)>
BAD_CONTENT_ENCODING <unrecognized transfer encoding> BAD_CONTENT_ENCODING <unrecognized transfer encoding>
LDAP_INVALID_URL <LDAP invalid url> LDAP_INVALID_URL <LDAP invalid url>
FILESIZE_EXCEEDED <maximum file size exceeded> FILESIZE_EXCEEDED <maximum file size exceeded>
USE_SSL_FAILED <requested FTP SSL level failed> USE_SSL_FAILED <requested FTP SSL level failed>
SEND_FAIL_REWIND <sending data requires a rewind that failed> SEND_FAIL_REWIND <sending data requires a rewind that failed>
SSL_ENGINE_INITFAILED <failed to initialise ENGINE> SSL_ENGINE_INITFAILED <failed to initialise ENGINE>
LOGIN_DENIED <user or password not accepted. failed to login> LOGIN_DENIED <user or password not accepted. failed to login>
TFTP_NOTFOUND <file not found on server> TFTP_NOTFOUND <file not found on server>
TFTP_PERM <permission problem on server> TFTP_PERM <permission problem on server>
REMOTE_DISK_FULL <out of disk space on server> REMOTE_DISK_FULL <out of disk space on server>
TFTP_ILLEGAL <illegal TFTP operation> TFTP_ILLEGAL <illegal TFTP operation>
TFTP_UNKNOWNID <unknown transfer ID> TFTP_UNKNOWNID <unknown transfer ID>
REMOTE_FILE_EXISTS <file already exists> REMOTE_FILE_EXISTS <file already exists>
TFTP_NOSUCHUSER <no such user> TFTP_NOSUCHUSER <no such user>
CONV_FAILED <conversion failed> CONV_FAILED <conversion failed>
CONV_REQD <caller must register conversion callbacks> CONV_REQD <caller must register conversion callbacks>
SSL_CACERT_BADFILE <could not load CACERT file> SSL_CACERT_BADFILE <could not load CACERT file>
REMOTE_FILE_NOT_FOUND <remote file not found> REMOTE_FILE_NOT_FOUND <remote file not found>
SSH <unspecified error from the SSH layer> SSH <unspecified error from the SSH layer>
SSL_SHUTDOWN_FAILED <failed to shut down the SSL connection> SSL_SHUTDOWN_FAILED <failed to shut down the SSL connection>
AGAIN <socket not ready, wait and try again> AGAIN <socket not ready, wait and try again>
SSL_CRL_BADFILE <could not load CRL file, missing or wrong format> SSL_CRL_BADFILE <could not load CRL file, missing or wrong format>
SSL_ISSUER_ERROR <issuer check failed> SSL_ISSUER_ERROR <issuer check failed>
CURL_LAST <CURLMSG.MSG is out of sync with the source code> CURL_LAST <CURLMSG.MSG is out of sync with the source code>
.END .END

View File

@ -52,92 +52,92 @@
*/ */
static const long vms_cond[] = static const long vms_cond[] =
{ {
CURL_OK, CURL_OK,
CURL_UNSUPPORTED_PROTOCOL, CURL_UNSUPPORTED_PROTOCOL,
CURL_FAILED_INIT, CURL_FAILED_INIT,
CURL_URL_MALFORMAT, CURL_URL_MALFORMAT,
CURL_OBSOLETE4, CURL_OBSOLETE4,
CURL_COULDNT_RESOLVE_PROXY, CURL_COULDNT_RESOLVE_PROXY,
CURL_COULDNT_RESOLVE_HOST, CURL_COULDNT_RESOLVE_HOST,
CURL_COULDNT_CONNECT, CURL_COULDNT_CONNECT,
CURL_WEIRD_SERVER_REPLY, CURL_WEIRD_SERVER_REPLY,
CURL_FTP_ACCESS_DENIED, CURL_FTP_ACCESS_DENIED,
CURL_OBSOLETE10, CURL_OBSOLETE10,
CURL_FTP_WEIRD_PASS_REPLY, CURL_FTP_WEIRD_PASS_REPLY,
CURL_OBSOLETE12, CURL_OBSOLETE12,
CURL_FTP_WEIRD_PASV_REPLY, CURL_FTP_WEIRD_PASV_REPLY,
CURL_FTP_WEIRD_227_FORMAT, CURL_FTP_WEIRD_227_FORMAT,
CURL_FTP_CANT_GET_HOST, CURL_FTP_CANT_GET_HOST,
CURL_OBSOLETE16, CURL_OBSOLETE16,
CURL_FTP_COULDNT_SET_TYPE, CURL_FTP_COULDNT_SET_TYPE,
CURL_PARTIAL_FILE, CURL_PARTIAL_FILE,
CURL_FTP_COULDNT_RETR_FILE, CURL_FTP_COULDNT_RETR_FILE,
CURL_OBSOLETE20, CURL_OBSOLETE20,
CURL_QUOTE_ERROR, CURL_QUOTE_ERROR,
CURL_HTTP_RETURNED_ERROR, CURL_HTTP_RETURNED_ERROR,
CURL_WRITE_ERROR, CURL_WRITE_ERROR,
CURL_OBSOLETE24, CURL_OBSOLETE24,
CURL_UPLOAD_FAILED, CURL_UPLOAD_FAILED,
CURL_READ_ERROR, CURL_READ_ERROR,
CURL_OUT_OF_MEMORY, CURL_OUT_OF_MEMORY,
CURL_OPERATION_TIMEOUTED, CURL_OPERATION_TIMEOUTED,
CURL_OBSOLETE29, CURL_OBSOLETE29,
CURL_FTP_PORT_FAILED, CURL_FTP_PORT_FAILED,
CURL_FTP_COULDNT_USE_REST, CURL_FTP_COULDNT_USE_REST,
CURL_OBSOLETE32, CURL_OBSOLETE32,
CURL_RANGE_ERROR, CURL_RANGE_ERROR,
CURL_HTTP_POST_ERROR, CURL_HTTP_POST_ERROR,
CURL_SSL_CONNECT_ERROR, CURL_SSL_CONNECT_ERROR,
CURL_BAD_DOWNLOAD_RESUME, CURL_BAD_DOWNLOAD_RESUME,
CURL_FILE_COULDNT_READ_FILE, CURL_FILE_COULDNT_READ_FILE,
CURL_LDAP_CANNOT_BIND, CURL_LDAP_CANNOT_BIND,
CURL_LDAP_SEARCH_FAILED, CURL_LDAP_SEARCH_FAILED,
CURL_OBSOLETE40, CURL_OBSOLETE40,
CURL_FUNCTION_NOT_FOUND, CURL_FUNCTION_NOT_FOUND,
CURL_ABORTED_BY_CALLBACK, CURL_ABORTED_BY_CALLBACK,
CURL_BAD_FUNCTION_ARGUMENT, CURL_BAD_FUNCTION_ARGUMENT,
CURL_OBSOLETE44, CURL_OBSOLETE44,
CURL_INTERFACE_FAILED, CURL_INTERFACE_FAILED,
CURL_OBSOLETE46, CURL_OBSOLETE46,
CURL_TOO_MANY_REDIRECTS, CURL_TOO_MANY_REDIRECTS,
CURL_UNKNOWN_TELNET_OPTION, CURL_UNKNOWN_TELNET_OPTION,
CURL_TELNET_OPTION_SYNTAX, CURL_TELNET_OPTION_SYNTAX,
CURL_OBSOLETE50, CURL_OBSOLETE50,
CURL_PEER_FAILED_VERIF, CURL_PEER_FAILED_VERIF,
CURL_GOT_NOTHING, CURL_GOT_NOTHING,
CURL_SSL_ENGINE_NOTFOUND, CURL_SSL_ENGINE_NOTFOUND,
CURL_SSL_ENGINE_SETFAILED, CURL_SSL_ENGINE_SETFAILED,
CURL_SEND_ERROR, CURL_SEND_ERROR,
CURL_RECV_ERROR, CURL_RECV_ERROR,
CURL_OBSOLETE57, CURL_OBSOLETE57,
CURL_SSL_CERTPROBLEM, CURL_SSL_CERTPROBLEM,
CURL_SSL_CIPHER, CURL_SSL_CIPHER,
CURL_SSL_CACERT, CURL_SSL_CACERT,
CURL_BAD_CONTENT_ENCODING, CURL_BAD_CONTENT_ENCODING,
CURL_LDAP_INVALID_URL, CURL_LDAP_INVALID_URL,
CURL_FILESIZE_EXCEEDED, CURL_FILESIZE_EXCEEDED,
CURL_USE_SSL_FAILED, CURL_USE_SSL_FAILED,
CURL_SEND_FAIL_REWIND, CURL_SEND_FAIL_REWIND,
CURL_SSL_ENGINE_INITFAILED, CURL_SSL_ENGINE_INITFAILED,
CURL_LOGIN_DENIED, CURL_LOGIN_DENIED,
CURL_TFTP_NOTFOUND, CURL_TFTP_NOTFOUND,
CURL_TFTP_PERM, CURL_TFTP_PERM,
CURL_REMOTE_DISK_FULL, CURL_REMOTE_DISK_FULL,
CURL_TFTP_ILLEGAL, CURL_TFTP_ILLEGAL,
CURL_TFTP_UNKNOWNID, CURL_TFTP_UNKNOWNID,
CURL_REMOTE_FILE_EXISTS, CURL_REMOTE_FILE_EXISTS,
CURL_TFTP_NOSUCHUSER, CURL_TFTP_NOSUCHUSER,
CURL_CONV_FAILED, CURL_CONV_FAILED,
CURL_CONV_REQD, CURL_CONV_REQD,
CURL_SSL_CACERT_BADFILE, CURL_SSL_CACERT_BADFILE,
CURL_REMOTE_FILE_NOT_FOUND, CURL_REMOTE_FILE_NOT_FOUND,
CURL_SSH, CURL_SSH,
CURL_SSL_SHUTDOWN_FAILED, CURL_SSL_SHUTDOWN_FAILED,
CURL_AGAIN, CURL_AGAIN,
CURLE_SSL_CRL_BADFILE, CURLE_SSL_CRL_BADFILE,
CURLE_SSL_ISSUER_ERROR, CURLE_SSL_ISSUER_ERROR,
CURL_CURL_LAST CURL_CURL_LAST
}; };
#endif /* HEADER_CURLMSG_VMS_H */ #endif /* HEADER_CURLMSG_VMS_H */

View File

@ -71,8 +71,8 @@ $! ssl$* logicals means HP ssl is present
$!---------------------------------------- $!----------------------------------------
$ if f$trnlnm("ssl$root") .nes. "" $ if f$trnlnm("ssl$root") .nes. ""
$ then $ then
$ nohpssl = 0 $ nohpssl = 0
$ hpssl = 1 $ hpssl = 1
$ endif $ endif
$! $!
$! HP defines OPENSSL as SSL$INCLUDE as a convenience for linking. $! HP defines OPENSSL as SSL$INCLUDE as a convenience for linking.
@ -83,25 +83,25 @@ $!------------------------------------
$ openssl_lnm = f$trnlnm("OPENSSL") $ openssl_lnm = f$trnlnm("OPENSSL")
$ if (openssl_lnm .nes. "SYS$INCLUDE") $ if (openssl_lnm .nes. "SYS$INCLUDE")
$ then $ then
$! Non HP SSL is installed, default to use it. $! Non HP SSL is installed, default to use it.
$ nohpssl = 1 $ nohpssl = 1
$ hpssl = 0 $ hpssl = 0
$ endif $ endif
$! $!
$! Now check to see if hpssl has been specifically disabled $! Now check to see if hpssl has been specifically disabled
$!---------------------------------------------------------- $!----------------------------------------------------------
$ if f$locate(",nohpssl,", args_lower) .lt. args_len $ if f$locate(",nohpssl,", args_lower) .lt. args_len
$ then $ then
$ nohpssl = 1 $ nohpssl = 1
$ hpssl = 0 $ hpssl = 0
$ endif $ endif
$! $!
$! Finally check to see if hp ssl has been specifically included. $! Finally check to see if hp ssl has been specifically included.
$!---------------------------------------------------------------- $!----------------------------------------------------------------
$ if f$locate(",nohpssl,", args_lower) .lt. args_len $ if f$locate(",nohpssl,", args_lower) .lt. args_len
$ then $ then
$ nohpssl = 1 $ nohpssl = 1
$ hpssl = 0 $ hpssl = 0
$ endif $ endif
$endif $endif
$! $!
@ -113,14 +113,14 @@ $ write sys$output "NOTICE: A LIBIDN port has been detected."
$ write sys$output " This port of curl for VMS has not been tested with it." $ write sys$output " This port of curl for VMS has not been tested with it."
$ if f$locate(",libidn,", args_lower) .lt. args_len $ if f$locate(",libidn,", args_lower) .lt. args_len
$ then $ then
$ libidn = 1 $ libidn = 1
$ endif $ endif
$ if .not. libidn $ if .not. libidn
$ then $ then
$ write sys$output " LIBIDN support is not enabled." $ write sys$output " LIBIDN support is not enabled."
$ write sys$output "Run with the ""libidn"" parameter to attempt to use." $ write sys$output "Run with the ""libidn"" parameter to attempt to use."
$ else $ else
$ write sys$output " Untested LIBIDN support requested." $ write sys$output " Untested LIBIDN support requested."
$ endif $ endif
$endif $endif
$! $!
@ -132,14 +132,14 @@ $ write sys$output "NOTICE: A LIBSSH2 port has been detected."
$ write sys$output " This port of curl for VMS has not been tested with it." $ write sys$output " This port of curl for VMS has not been tested with it."
$ if f$locate(",libssh2,", args_lower) .lt. args_len $ if f$locate(",libssh2,", args_lower) .lt. args_len
$ then $ then
$ libssh2 = 1 $ libssh2 = 1
$ endif $ endif
$ if .not. libssh2 $ if .not. libssh2
$ then $ then
$ write sys$output " LIBSSH2 support is not enabled." $ write sys$output " LIBSSH2 support is not enabled."
$ write sys$output "Run with the ""libssh2"" parameter to attempt to use." $ write sys$output "Run with the ""libssh2"" parameter to attempt to use."
$ else $ else
$ write sys$output " Untested LIBSSH2 support requested." $ write sys$output " Untested LIBSSH2 support requested."
$ endif $ endif
$endif $endif
$! $!
@ -159,7 +159,7 @@ $then
$! If kerberos is installed: sys$share:gss$rtl.exe exists. $! If kerberos is installed: sys$share:gss$rtl.exe exists.
$ if f$search("sys$shsare:gss$rtl.exe") .eqs. "" $ if f$search("sys$shsare:gss$rtl.exe") .eqs. ""
$ then $ then
$ nokerberos = 1 $ nokerberos = 1
$ endif $ endif
$endif $endif
$! $!
@ -170,13 +170,13 @@ $if f$trnlnm("GNV$LIBZSHR") .nes. ""
$then $then
$ if f$locate(",nozlib,", args_lower) .lt. args_len $ if f$locate(",nozlib,", args_lower) .lt. args_len
$ then $ then
$ nozlib = 1 $ nozlib = 1
$ endif $ endif
$! if .not. nozlib $! if .not. nozlib
$! then $! then
$! write sys$output " GNV$LIBZSHR support is enabled." $! write sys$output " GNV$LIBZSHR support is enabled."
$! else $! else
$! write sys$output " GNV$LIBZSHR support is disabled by nozlib." $! write sys$output " GNV$LIBZSHR support is disabled by nozlib."
$! endif $! endif
$else $else
$ nozlib = 1 $ nozlib = 1
@ -262,9 +262,9 @@ $ write cvh "#undef CURL_DISABLE_LDAP"
$ write cvh "#endif" $ write cvh "#endif"
$ if .not. nossl $ if .not. nossl
$ then $ then
$ write cvh "#ifdef CURL_DISABLE_LDAPS" $ write cvh "#ifdef CURL_DISABLE_LDAPS"
$ write cvh "#undef CURL_DISABLE_LDAPS" $ write cvh "#undef CURL_DISABLE_LDAPS"
$ write cvh "#endif" $ write cvh "#endif"
$ endif $ endif
$endif $endif
$write cvh "#ifdef CURL_DISABLE_LIBCURL_OPTION" $write cvh "#ifdef CURL_DISABLE_LIBCURL_OPTION"