From 20b76e09e32e9f70c3080e8a4ec4df7e1f794560 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 21 Mar 2004 22:38:01 +0000 Subject: Marty Kuhrt's VMS updates --- packages/vms/batch_compile.com | Bin 196 -> 188 bytes packages/vms/build_vms.com | 85 +++++++++++++++++++------------ packages/vms/config-vms.h_with_ssl | Bin 7172 -> 6828 bytes packages/vms/config-vms.h_without_ssl | Bin 7166 -> 6822 bytes packages/vms/curlmsg.h | 92 ++++++++++++++++++++++++++++++++++ packages/vms/curlmsg.msg | 87 ++++++++++++++++++++++++++++++++ packages/vms/curlmsg.sdl | 90 +++++++++++++++++++++++++++++++++ packages/vms/curlmsg_vms.h | 91 +++++++++++++++++++++++++++++++++ packages/vms/defines.com | Bin 1544 -> 2429 bytes packages/vms/hpssl_alpha.opt | Bin 80 -> 77 bytes packages/vms/hpssl_ia64.opt | Bin 80 -> 77 bytes packages/vms/hpssl_vax.opt | Bin 84 -> 81 bytes packages/vms/readme | Bin 2272 -> 2752 bytes 13 files changed, 413 insertions(+), 32 deletions(-) create mode 100644 packages/vms/curlmsg.h create mode 100644 packages/vms/curlmsg.msg create mode 100644 packages/vms/curlmsg.sdl create mode 100644 packages/vms/curlmsg_vms.h diff --git a/packages/vms/batch_compile.com b/packages/vms/batch_compile.com index 9c798301b..0bacb6149 100755 Binary files a/packages/vms/batch_compile.com and b/packages/vms/batch_compile.com differ diff --git a/packages/vms/build_vms.com b/packages/vms/build_vms.com index 4ca3c4b8e..73bf9f8b1 100755 --- a/packages/vms/build_vms.com +++ b/packages/vms/build_vms.com @@ -32,8 +32,15 @@ $! 29-JAN-2004, MSK, moved logical defines into defines.com $! 6-FEB-2004, MSK, put in various SSL support bits $! 9-MAR-2004, MSK, the config-vms.h* files are now copied to the lib and $! src directories as config.h. +$! 15-MAR-2004, MSK, All of the curlmsg*.* files have also been moved to +$! this build directory. They will be copied to the src +$! directory before build. The .msg file will be compiled +$! to get the .obj for messages, but the .h and .sdl files +$! are not automatically created since they partly rely on +$! the freeware SDL tool. $! $ on control_y then goto Common_Exit +$ ctrl_y = 1556 $ origdir = f$environment("DEFAULT") $ proc = f$environment("PROCEDURE") $ thisdir = f$parse( proc,,,"DEVICE") + f$parse( proc,,,"DIRECTORY") @@ -48,10 +55,15 @@ $ vo_l = "write sys$output" $ vo_o = "!" $! $ defines = thisdir + "defines.com" -$ if f$search( defines) .eqs. "" -$ then -$ write sys$output "%CURL-F-DEFFNF, cannot find defines.com procedure" -$ exit %X18290 ! FNF +$ if f$trnlnm( "curl_defines_done") .eqs. "" +$ then +$ if f$search( defines) .eqs. "" +$ then +$ write sys$output "%CURL-F-DEFFNF, cannot find defines.com procedure" +$ exit %X18290 ! FNF +$ else +$ @'defines' +$ endif $ endif $ set def 'thisdir' $ cc_qual = "/define=HAVE_CONFIG_H=1/OBJ=OBJDIR:" @@ -83,41 +95,30 @@ $! $ if ( openssl .eq. 1) .or. ( hpssl .eq. 1) $ then $ 'vo_c' "%CURL-I-BLDSSL, building with SSL support" -$ source_h = "CONFIG-VMS.H_WITH_SSL" +$ config_h = "CONFIG-VMS.H_WITH_SSL" $ else $ 'vo_c' "%CURL-I-BLDNOSSL, building without SSL support" -$ source_h = "CONFIG-VMS.H_WITHOUT_SSL" +$ config_h = "CONFIG-VMS.H_WITHOUT_SSL" $ endif $! $! Only do the copy if the source and destination files are different. -$! Put this block into Set NoOn mode so that if the diff command triggers -$! an error while error message reporting is turned off, then it won't -$! just exit the command procedure mysteriously. $! -$ set noon -$ set message/nof/noi/nos/not -$ diff/out=nla0: 'source_h' [--.SRC]CONFIG.H -$ status = $status -$ set message/f/i/s/t -$ if ( status .ne. %X006C8009) ! if status is not "no diff" -$ then -$ copy 'source_h' [--.SRC]CONFIG.H -$ purge/nolog [--.SRC]CONFIG.H -$ endif -$ set message/nof/noi/nos/not -$ diff/out=nla0: 'source_h' [--.LIB]CONFIG.H -$ status = $status -$ set message/f/i/s/t -$ if ( status .ne. %X006C8009) ! if status is not "no diff" -$ then -$ copy 'source_h' [--.LIB]CONFIG.H -$ purge/nolog [--.LIB]CONFIG.H -$ endif +$ call MoveIfDiff 'config_h' "[--.LIB]CONFIG.H" +$ call MoveIfDiff 'config_h' "[--.SRC]CONFIG.H" +$! call MoveIfDiff "SETUP.H" "[--.LIB]" +$! call MoveIfDiff "SETUP.H" "[--.SRC]" +$ call MoveIfDiff "CURLMSG.H" "[--.SRC]" +$ call MoveIfDiff "CURLMSG.MSG" "[--.SRC]" +$ call MoveIfDiff "CURLMSG.SDL" "[--.SRC]" +$ call MoveIfDiff "CURLMSG_VMS.H" "[--.SRC]" $ on control_y then goto Common_Exit $! $ call build "[--.lib]" "*.c" "objdir:curllib.olb" +$ if ($status .eq. ctrl_y) then goto Common_Exit $ call build "[--.src]" "*.c" "objdir:curlsrc.olb" +$ if ($status .eq. ctrl_y) then goto Common_Exit $ call build "[--.src]" "*.msg" "objdir:curlsrc.olb" +$ if ($status .eq. ctrl_y) then goto Common_Exit $ if ( openssl .eq. 1) .and. ( hpssl .eq. 0) $ then $ 'vo_l' "%CURL-I-LINK_OSSL, linking with OpenSSL" @@ -148,7 +149,7 @@ $! the directory passed in via P1 and put it in the object library named $! via P3 $! $build: subroutine -$ on control_y then exit 2 +$ on control_y then return ctrl_y ! SS$_CONTROLY $ set noon $ set default 'p1' $ search = p2 @@ -168,7 +169,7 @@ $ then $ if (f$cvtime(f$file(file,"rdt")) .gts. f$cvtime(f$file(obj,"rdt"))) $ then $ call compile 'file' -$ if .not. $status then exit $status +$ if .not. $status then return $status $ lib/object 'p3' 'objfile' $ else $ 'vo_o' "%CURL-I-OBJUTD, ", objfile, " is up to date" @@ -176,12 +177,13 @@ $ endif $ else $ 'vo_o' "%CURL-I-OBJDNE, ", file, " does not exist" $ call compile 'file' -$ if .not. $status then exit $status +$ if .not. $status then return $status $ lib/object 'p3' 'objfile' $ endif $ goto Loop $EndLoop: $ !purge +$ on control_y then return ctrl_y ! SS$_CONTROLY $ set def 'origdir' $ endsubroutine ! Build $! @@ -189,7 +191,7 @@ $! Based on the file TYPE, do the right compile command. $! Only C and MSG supported. $! $compile: subroutine -$ on control_y then exit 2 +$ on control_y then return ctrl_y ! SS$_CONTROLY $ set noon $ file = p1 $ qual = p2+p3+p4+p5+p6+p7+p8 @@ -199,8 +201,27 @@ $ cmd_msg = "MESSAGE "+msg_qual $ x = cmd_'typ' $ 'vo_c' x," ",file $ 'x' 'file' +$ on control_y then return ctrl_y ! SS$_CONTROLY $ ENDSUBROUTINE ! Compile $! +$! Do a diff of the file specified in P1 with that in P2. If different +$! copy P1 to P2. This also covers if P2 doesn't exist, but not if P2 +$! is an invalid filespec. +$! +$MoveIfDiff: subroutine +$ set NoOn +$ set message/nof/noi/nos/not +$ diff/out=nla0: 'p1' 'p2' +$ status = $status +$ set message/f/i/s/t +$ if ( status .ne. %X006C8009) ! if status is not "no diff" +$ then +$ copy 'p1' 'p2' +$ purge/nolog 'p2' +$ endif +$ on control_y then return ctrl_y ! SS$_CONTROLY +$ ENDSUBROUTINE ! MoveIfDiff +$! $Common_Exit: $ set default 'origdir' $ exit diff --git a/packages/vms/config-vms.h_with_ssl b/packages/vms/config-vms.h_with_ssl index c883f7fed..1b66d5e1f 100755 Binary files a/packages/vms/config-vms.h_with_ssl and b/packages/vms/config-vms.h_with_ssl differ diff --git a/packages/vms/config-vms.h_without_ssl b/packages/vms/config-vms.h_without_ssl index b56a467b9..f48163edc 100755 Binary files a/packages/vms/config-vms.h_without_ssl and b/packages/vms/config-vms.h_without_ssl differ diff --git a/packages/vms/curlmsg.h b/packages/vms/curlmsg.h new file mode 100644 index 000000000..cd13eb61f --- /dev/null +++ b/packages/vms/curlmsg.h @@ -0,0 +1,92 @@ +/********************************************************************************************************************************/ +/* Created: 9-MAR-2004 14:07:55 by OpenVMS SDL EV1-60 */ +/* Source: 9-MAR-2004 14:07:27 SYS$SYSDEVICE:[MARTY.CURL.CURL-7_11_1-PRE1.SRC] */ +/********************************************************************************************************************************/ +/*** MODULE $CURDEF ***/ +#pragma __member_alignment __save +#pragma __nomember_alignment +/* */ +/* This SDL File Generated by VAX-11 Message V04-00 on 9-MAR-2004 14:07:27.56 */ +/* */ +/* */ +/* THESE VMS ERROR CODES ARE GENERATED BY TAKING APART THE CURL.H */ +/* FILE AND PUTTING ALL THE CURLE_* ENUM STUFF INTO THIS FILE, */ +/* CURLMSG.MSG. AN .SDL FILE IS CREATED FROM THIS FILE WITH */ +/* MESSAGE/SDL. THE .H FILE IS CREATED USING THE FREEWARE SDL TOOL */ +/* AGAINST THE .SDL FILE. */ +/* */ +/* WITH THE EXCEPTION OF CURLE_OK, ALL OF THE MESSAGES ARE AT */ +/* THE ERROR SEVERITY LEVEL. WITH THE EXCEPTION OF */ +/* FTP_USER_PWD_INCORRECT, WHICH IS A SHORTENED FORM OF */ +/* FTP_USER_PASSWORD_INCORRECT, THESE ARE THE SAME NAMES AS THE */ +/* CURLE_ ONES IN INCLUDE/CURL.H */ +/* */ +#define CURL_FACILITY 3841 +#define CURL_OK 251756553 +#define CURL_UNSUPPORTED_PROTOCOL 251756562 +#define CURL_FAILED_INIT 251756570 +#define CURL_URL_MALFORMAT 251756578 +#define CURL_URL_MALFORMAT_USER 251756586 +#define CURL_COULDNT_RESOLVE_PROXY 251756594 +#define CURL_COULDNT_RESOLVE_HOST 251756602 +#define CURL_COULDNT_CONNECT 251756610 +#define CURL_FTP_WEIRD_SERVER_REPLY 251756618 +#define CURL_FTP_ACCESS_DENIED 251756626 +#define CURL_FTP_USER_PWD_INCORRECT 251756634 +#define CURL_FTP_WEIRD_PASS_REPLY 251756642 +#define CURL_FTP_WEIRD_USER_REPLY 251756650 +#define CURL_FTP_WEIRD_PASV_REPLY 251756658 +#define CURL_FTP_WEIRD_227_FORMAT 251756666 +#define CURL_FTP_CANT_GET_HOST 251756674 +#define CURL_FTP_CANT_RECONNECT 251756682 +#define CURL_FTP_COULDNT_SET_BINARY 251756690 +#define CURL_PARTIAL_FILE 251756698 +#define CURL_FTP_COULDNT_RETR_FILE 251756706 +#define CURL_FTP_WRITE_ERROR 251756714 +#define CURL_FTP_QUOTE_ERROR 251756722 +#define CURL_HTTP_RETURNED_ERROR 251756730 +#define CURL_WRITE_ERROR 251756738 +#define CURL_MALFORMAT_USER 251756746 +#define CURL_FTP_COULDNT_STOR_FILE 251756754 +#define CURL_READ_ERROR 251756762 +#define CURL_OUT_OF_MEMORY 251756770 +#define CURL_OPERATION_TIMEOUTED 251756778 +#define CURL_FTP_COULDNT_SET_ASCII 251756786 +#define CURL_FTP_PORT_FAILED 251756794 +#define CURL_FTP_COULDNT_USE_REST 251756802 +#define CURL_FTP_COULDNT_GET_SIZE 251756810 +#define CURL_HTTP_RANGE_ERROR 251756818 +#define CURL_HTTP_POST_ERROR 251756826 +#define CURL_SSL_CONNECT_ERROR 251756834 +#define CURL_BAD_DOWNLOAD_RESUME 251756842 +#define CURL_FILE_COULDNT_READ_FILE 251756850 +#define CURL_LDAP_CANNOT_BIND 251756858 +#define CURL_LDAP_SEARCH_FAILED 251756866 +#define CURL_LIBRARY_NOT_FOUND 251756874 +#define CURL_FUNCTION_NOT_FOUND 251756882 +#define CURL_ABORTED_BY_CALLBACK 251756890 +#define CURL_BAD_FUNCTION_ARGUMENT 251756898 +#define CURL_BAD_CALLING_ORDER 251756906 +#define CURL_HTTP_PORT_FAILED 251756914 +#define CURL_BAD_PASSWORD_ENTERED 251756922 +#define CURL_TOO_MANY_REDIRECTS 251756930 +#define CURL_UNKNOWN_TELNET_OPTION 251756938 +#define CURL_TELNET_OPTION_SYNTAX 251756946 +#define CURL_OBSOLETE 251756954 +#define CURL_SSL_PEER_CERTIFICATE 251756962 +#define CURL_GOT_NOTHING 251756970 +#define CURL_SSL_ENGINE_NOTFOUND 251756978 +#define CURL_SSL_ENGINE_SETFAILED 251756986 +#define CURL_SEND_ERROR 251756994 +#define CURL_RECV_ERROR 251757002 +#define CURL_SHARE_IN_USE 251757010 +#define CURL_SSL_CERTPROBLEM 251757018 +#define CURL_SSL_CIPHER 251757026 +#define CURL_SSL_CACERT 251757034 +#define CURL_BAD_CONTENT_ENCODING 251757042 +#define CURL_LDAP_INVALID_URL 251757050 +#define CURL_FILESIZE_EXCEEDED 251757058 +#define CURL_FTP_SSL_FAILED 251757066 +#define CURL_CURL_LAST 251757074 + +#pragma __member_alignment __restore diff --git a/packages/vms/curlmsg.msg b/packages/vms/curlmsg.msg new file mode 100644 index 000000000..ae40d37cc --- /dev/null +++ b/packages/vms/curlmsg.msg @@ -0,0 +1,87 @@ +! +! These VMS error codes are generated by taking apart the curl.h +! file and putting all the CURLE_* enum stuff into this file, +! CURLMSG.MSG. An .SDL file is created from this file with +! MESSAGE/SDL. The .H file is created using the freeware SDL tool +! against the .SDL file. +! +! With the exception of CURLE_OK, all of the messages are at +! the error severity level. With the exception of +! FTP_USER_PWD_INCORRECT, which is a shortened form of +! FTP_USER_PASSWORD_INCORRECT, these are the same names as the +! CURLE_ ones in include/curl.h +! +.TITLE CURLMSG Message files +.FACILITY CURL,1793 /PREFIX=CURL_ +.BASE 1 +.SEVERITY SUCCESS +OK + +.SEVERITY ERROR +UNSUPPORTED_PROTOCOL +FAILED_INIT +URL_MALFORMAT +URL_MALFORMAT_USER +COULDNT_RESOLVE_PROXY +COULDNT_RESOLVE_HOST +COULDNT_CONNECT +FTP_WEIRD_SERVER_REPLY +FTP_ACCESS_DENIED +FTP_USER_PWD_INCORRECT +FTP_WEIRD_PASS_REPLY +FTP_WEIRD_USER_REPLY +FTP_WEIRD_PASV_REPLY +FTP_WEIRD_227_FORMAT +FTP_CANT_GET_HOST +FTP_CANT_RECONNECT +FTP_COULDNT_SET_BINARY +PARTIAL_FILE +FTP_COULDNT_RETR_FILE +FTP_WRITE_ERROR +FTP_QUOTE_ERROR +HTTP_RETURNED_ERROR +WRITE_ERROR +MALFORMAT_USER +FTP_COULDNT_STOR_FILE +READ_ERROR +OUT_OF_MEMORY +OPERATION_TIMEOUTED +FTP_COULDNT_SET_ASCII +FTP_PORT_FAILED +FTP_COULDNT_USE_REST +FTP_COULDNT_GET_SIZE +HTTP_RANGE_ERROR +HTTP_POST_ERROR +SSL_CONNECT_ERROR +BAD_DOWNLOAD_RESUME +FILE_COULDNT_READ_FILE +LDAP_CANNOT_BIND +LDAP_SEARCH_FAILED +LIBRARY_NOT_FOUND +FUNCTION_NOT_FOUND +ABORTED_BY_CALLBACK +BAD_FUNCTION_ARGUMENT +BAD_CALLING_ORDER +HTTP_PORT_FAILED +BAD_PASSWORD_ENTERED +TOO_MANY_REDIRECTS +UNKNOWN_TELNET_OPTION +TELNET_OPTION_SYNTAX +OBSOLETE +SSL_PEER_CERTIFICATE +GOT_NOTHING +SSL_ENGINE_NOTFOUND +SSL_ENGINE_SETFAILED +SEND_ERROR +RECV_ERROR +SHARE_IN_USE +SSL_CERTPROBLEM +SSL_CIPHER +SSL_CACERT +BAD_CONTENT_ENCODING +LDAP_INVALID_URL +FILESIZE_EXCEEDED +FTP_SSL_FAILED +CURL_LAST + +.END diff --git a/packages/vms/curlmsg.sdl b/packages/vms/curlmsg.sdl new file mode 100644 index 000000000..6800f508f --- /dev/null +++ b/packages/vms/curlmsg.sdl @@ -0,0 +1,90 @@ + + + MODULE $CURDEF; + +/* +/* This SDL File Generated by VAX-11 Message V04-00 on 9-MAR-2004 14:07:27.56 +/* +/* +/* THESE VMS ERROR CODES ARE GENERATED BY TAKING APART THE CURL.H +/* FILE AND PUTTING ALL THE CURLE_* ENUM STUFF INTO THIS FILE, +/* CURLMSG.MSG. AN .SDL FILE IS CREATED FROM THIS FILE WITH +/* MESSAGE/SDL. THE .H FILE IS CREATED USING THE FREEWARE SDL TOOL +/* AGAINST THE .SDL FILE. +/* +/* WITH THE EXCEPTION OF CURLE_OK, ALL OF THE MESSAGES ARE AT +/* THE ERROR SEVERITY LEVEL. WITH THE EXCEPTION OF +/* FTP_USER_PWD_INCORRECT, WHICH IS A SHORTENED FORM OF +/* FTP_USER_PASSWORD_INCORRECT, THESE ARE THE SAME NAMES AS THE +/* CURLE_ ONES IN INCLUDE/CURL.H +/* + CONSTANT + "FACILITY" EQUALS 3841 PREFIX "CURL" TAG "" + ,"OK" EQUALS %X0F018009 PREFIX "CURL" TAG "" + ,"UNSUPPORTED_PROTOCOL" EQUALS %X0F018012 PREFIX "CURL" TAG "" + ,"FAILED_INIT" EQUALS %X0F01801A PREFIX "CURL" TAG "" + ,"URL_MALFORMAT" EQUALS %X0F018022 PREFIX "CURL" TAG "" + ,"URL_MALFORMAT_USER" EQUALS %X0F01802A PREFIX "CURL" TAG "" + ,"COULDNT_RESOLVE_PROXY" EQUALS %X0F018032 PREFIX "CURL" TAG "" + ,"COULDNT_RESOLVE_HOST" EQUALS %X0F01803A PREFIX "CURL" TAG "" + ,"COULDNT_CONNECT" EQUALS %X0F018042 PREFIX "CURL" TAG "" + ,"FTP_WEIRD_SERVER_REPLY" EQUALS %X0F01804A PREFIX "CURL" TAG "" + ,"FTP_ACCESS_DENIED" EQUALS %X0F018052 PREFIX "CURL" TAG "" + ,"FTP_USER_PWD_INCORRECT" EQUALS %X0F01805A PREFIX "CURL" TAG "" + ,"FTP_WEIRD_PASS_REPLY" EQUALS %X0F018062 PREFIX "CURL" TAG "" + ,"FTP_WEIRD_USER_REPLY" EQUALS %X0F01806A PREFIX "CURL" TAG "" + ,"FTP_WEIRD_PASV_REPLY" EQUALS %X0F018072 PREFIX "CURL" TAG "" + ,"FTP_WEIRD_227_FORMAT" EQUALS %X0F01807A PREFIX "CURL" TAG "" + ,"FTP_CANT_GET_HOST" EQUALS %X0F018082 PREFIX "CURL" TAG "" + ,"FTP_CANT_RECONNECT" EQUALS %X0F01808A PREFIX "CURL" TAG "" + ,"FTP_COULDNT_SET_BINARY" EQUALS %X0F018092 PREFIX "CURL" TAG "" + ,"PARTIAL_FILE" EQUALS %X0F01809A PREFIX "CURL" TAG "" + ,"FTP_COULDNT_RETR_FILE" EQUALS %X0F0180A2 PREFIX "CURL" TAG "" + ,"FTP_WRITE_ERROR" EQUALS %X0F0180AA PREFIX "CURL" TAG "" + ,"FTP_QUOTE_ERROR" EQUALS %X0F0180B2 PREFIX "CURL" TAG "" + ,"HTTP_RETURNED_ERROR" EQUALS %X0F0180BA PREFIX "CURL" TAG "" + ,"WRITE_ERROR" EQUALS %X0F0180C2 PREFIX "CURL" TAG "" + ,"MALFORMAT_USER" EQUALS %X0F0180CA PREFIX "CURL" TAG "" + ,"FTP_COULDNT_STOR_FILE" EQUALS %X0F0180D2 PREFIX "CURL" TAG "" + ,"READ_ERROR" EQUALS %X0F0180DA PREFIX "CURL" TAG "" + ,"OUT_OF_MEMORY" EQUALS %X0F0180E2 PREFIX "CURL" TAG "" + ,"OPERATION_TIMEOUTED" EQUALS %X0F0180EA PREFIX "CURL" TAG "" + ,"FTP_COULDNT_SET_ASCII" EQUALS %X0F0180F2 PREFIX "CURL" TAG "" + ,"FTP_PORT_FAILED" EQUALS %X0F0180FA PREFIX "CURL" TAG "" + ,"FTP_COULDNT_USE_REST" EQUALS %X0F018102 PREFIX "CURL" TAG "" + ,"FTP_COULDNT_GET_SIZE" EQUALS %X0F01810A PREFIX "CURL" TAG "" + ,"HTTP_RANGE_ERROR" EQUALS %X0F018112 PREFIX "CURL" TAG "" + ,"HTTP_POST_ERROR" EQUALS %X0F01811A PREFIX "CURL" TAG "" + ,"SSL_CONNECT_ERROR" EQUALS %X0F018122 PREFIX "CURL" TAG "" + ,"BAD_DOWNLOAD_RESUME" EQUALS %X0F01812A PREFIX "CURL" TAG "" + ,"FILE_COULDNT_READ_FILE" EQUALS %X0F018132 PREFIX "CURL" TAG "" + ,"LDAP_CANNOT_BIND" EQUALS %X0F01813A PREFIX "CURL" TAG "" + ,"LDAP_SEARCH_FAILED" EQUALS %X0F018142 PREFIX "CURL" TAG "" + ,"LIBRARY_NOT_FOUND" EQUALS %X0F01814A PREFIX "CURL" TAG "" + ,"FUNCTION_NOT_FOUND" EQUALS %X0F018152 PREFIX "CURL" TAG "" + ,"ABORTED_BY_CALLBACK" EQUALS %X0F01815A PREFIX "CURL" TAG "" + ,"BAD_FUNCTION_ARGUMENT" EQUALS %X0F018162 PREFIX "CURL" TAG "" + ,"BAD_CALLING_ORDER" EQUALS %X0F01816A PREFIX "CURL" TAG "" + ,"HTTP_PORT_FAILED" EQUALS %X0F018172 PREFIX "CURL" TAG "" + ,"BAD_PASSWORD_ENTERED" EQUALS %X0F01817A PREFIX "CURL" TAG "" + ,"TOO_MANY_REDIRECTS" EQUALS %X0F018182 PREFIX "CURL" TAG "" + ,"UNKNOWN_TELNET_OPTION" EQUALS %X0F01818A PREFIX "CURL" TAG "" + ,"TELNET_OPTION_SYNTAX" EQUALS %X0F018192 PREFIX "CURL" TAG "" + ,"OBSOLETE" EQUALS %X0F01819A PREFIX "CURL" TAG "" + ,"SSL_PEER_CERTIFICATE" EQUALS %X0F0181A2 PREFIX "CURL" TAG "" + ,"GOT_NOTHING" EQUALS %X0F0181AA PREFIX "CURL" TAG "" + ,"SSL_ENGINE_NOTFOUND" EQUALS %X0F0181B2 PREFIX "CURL" TAG "" + ,"SSL_ENGINE_SETFAILED" EQUALS %X0F0181BA PREFIX "CURL" TAG "" + ,"SEND_ERROR" EQUALS %X0F0181C2 PREFIX "CURL" TAG "" + ,"RECV_ERROR" EQUALS %X0F0181CA PREFIX "CURL" TAG "" + ,"SHARE_IN_USE" EQUALS %X0F0181D2 PREFIX "CURL" TAG "" + ,"SSL_CERTPROBLEM" EQUALS %X0F0181DA PREFIX "CURL" TAG "" + ,"SSL_CIPHER" EQUALS %X0F0181E2 PREFIX "CURL" TAG "" + ,"SSL_CACERT" EQUALS %X0F0181EA PREFIX "CURL" TAG "" + ,"BAD_CONTENT_ENCODING" EQUALS %X0F0181F2 PREFIX "CURL" TAG "" + ,"LDAP_INVALID_URL" EQUALS %X0F0181FA PREFIX "CURL" TAG "" + ,"FILESIZE_EXCEEDED" EQUALS %X0F018202 PREFIX "CURL" TAG "" + ,"FTP_SSL_FAILED" EQUALS %X0F01820A PREFIX "CURL" TAG "" + ,"CURL_LAST" EQUALS %X0F018212 PREFIX "CURL" TAG "" + ; + END_MODULE; diff --git a/packages/vms/curlmsg_vms.h b/packages/vms/curlmsg_vms.h new file mode 100644 index 000000000..8dc2090aa --- /dev/null +++ b/packages/vms/curlmsg_vms.h @@ -0,0 +1,91 @@ +/* CURLMSG_VMS.H */ +/* This defines the necessary bits to change CURLE_* error codes to VMS */ +/* style error codes. CURLMSG.H is built from CURLMSG.SDL which is built */ +/* from CURLMSG.MSG. The vms_cond array is used to return VMS errors by */ +/* putting the VMS error codes into the array offset based on CURLE_* code. */ +/* */ +#include "curlmsg.h" +int vms_show = 0; +/* +#define FAC_CURL 0xC01 +#define FAC_SYSTEM 0 +#define MSG_NORMAL 0 +*/ +#define VMS_STS(c,f,e,s) (((c&0xF)<<28)|((f&0xFFF)<<16)|((e&0x1FFF)<3)|(s&7)) +#define VMSSTS_HIDE VMS_STS(1,0,0,0) +/* +#define SEV_WARNING 0 +#define SEV_SUCCESS 1 +#define SEV_ERROR 2 +#define SEV_INFO 3 +#define SEV_FATAL 4 +*/ +long vms_cond[] = + { + CURL_OK, + CURL_UNSUPPORTED_PROTOCOL, + CURL_FAILED_INIT, + CURL_URL_MALFORMAT, + CURL_URL_MALFORMAT_USER, + CURL_COULDNT_RESOLVE_PROXY, + CURL_COULDNT_RESOLVE_HOST, + CURL_COULDNT_CONNECT, + CURL_FTP_WEIRD_SERVER_REPLY, + CURL_FTP_ACCESS_DENIED, + CURL_FTP_USER_PWD_INCORRECT, + CURL_FTP_WEIRD_PASS_REPLY, + CURL_FTP_WEIRD_USER_REPLY, + CURL_FTP_WEIRD_PASV_REPLY, + CURL_FTP_WEIRD_227_FORMAT, + CURL_FTP_CANT_GET_HOST, + CURL_FTP_CANT_RECONNECT, + CURL_FTP_COULDNT_SET_BINARY, + CURL_PARTIAL_FILE, + CURL_FTP_COULDNT_RETR_FILE, + CURL_FTP_WRITE_ERROR, + CURL_FTP_QUOTE_ERROR, + CURL_HTTP_RETURNED_ERROR, + CURL_WRITE_ERROR, + CURL_MALFORMAT_USER, + CURL_FTP_COULDNT_STOR_FILE, + CURL_READ_ERROR, + CURL_OUT_OF_MEMORY, + CURL_OPERATION_TIMEOUTED, + CURL_FTP_COULDNT_SET_ASCII, + CURL_FTP_PORT_FAILED, + CURL_FTP_COULDNT_USE_REST, + CURL_FTP_COULDNT_GET_SIZE, + CURL_HTTP_RANGE_ERROR, + CURL_HTTP_POST_ERROR, + CURL_SSL_CONNECT_ERROR, + CURL_BAD_DOWNLOAD_RESUME, + CURL_FILE_COULDNT_READ_FILE, + CURL_LDAP_CANNOT_BIND, + CURL_LDAP_SEARCH_FAILED, + CURL_LIBRARY_NOT_FOUND, + CURL_FUNCTION_NOT_FOUND, + CURL_ABORTED_BY_CALLBACK, + CURL_BAD_FUNCTION_ARGUMENT, + CURL_BAD_CALLING_ORDER, + CURL_HTTP_PORT_FAILED, + CURL_BAD_PASSWORD_ENTERED, + CURL_TOO_MANY_REDIRECTS, + CURL_UNKNOWN_TELNET_OPTION, + CURL_TELNET_OPTION_SYNTAX, + CURL_OBSOLETE, + CURL_SSL_PEER_CERTIFICATE, + CURL_GOT_NOTHING, + CURL_SSL_ENGINE_NOTFOUND, + CURL_SSL_ENGINE_SETFAILED, + CURL_SEND_ERROR, + CURL_RECV_ERROR, + CURL_SHARE_IN_USE, + CURL_SSL_CERTPROBLEM, + CURL_SSL_CIPHER, + CURL_SSL_CACERT, + CURL_BAD_CONTENT_ENCODING, + CURL_LDAP_INVALID_URL, + CURL_FILESIZE_EXCEEDED, + CURL_FTP_SSL_FAILED, + CURL_CURL_LAST + }; diff --git a/packages/vms/defines.com b/packages/vms/defines.com index f5a4464fb..2c2bd1b19 100755 Binary files a/packages/vms/defines.com and b/packages/vms/defines.com differ diff --git a/packages/vms/hpssl_alpha.opt b/packages/vms/hpssl_alpha.opt index 735a585b1..9b2201480 100644 Binary files a/packages/vms/hpssl_alpha.opt and b/packages/vms/hpssl_alpha.opt differ diff --git a/packages/vms/hpssl_ia64.opt b/packages/vms/hpssl_ia64.opt index 735a585b1..9b2201480 100644 Binary files a/packages/vms/hpssl_ia64.opt and b/packages/vms/hpssl_ia64.opt differ diff --git a/packages/vms/hpssl_vax.opt b/packages/vms/hpssl_vax.opt index 6f87c9bbb..3ad9fbdb2 100644 Binary files a/packages/vms/hpssl_vax.opt and b/packages/vms/hpssl_vax.opt differ diff --git a/packages/vms/readme b/packages/vms/readme index eb34f7bcd..38234c835 100644 Binary files a/packages/vms/readme and b/packages/vms/readme differ -- cgit v1.2.3