1 Only in curl-6.3.1: config-win32.h
2 Only in curl-6.3.1: config-win32.h~
3 Only in curl-6.3.1: config.cache
4 Only in curl-6.3.1: config.h
5 diff -cr curl-6.3.1-org/config.h.in curl-6.3.1/config.h.in
6 *** curl-6.3.1-org/config.h.in Sun Oct 17 13:18:34 1999
7 --- curl-6.3.1/config.h.in Thu Dec 9 14:23:01 1999
11 /* The number of bytes in a long long. */
12 #undef SIZEOF_LONG_LONG
14 + /* Define if you have the closesocket function. */
15 + #undef HAVE_CLOSESOCKET
17 /* Define if you have the gethostbyaddr function. */
18 #undef HAVE_GETHOSTBYADDR
23 /* Define if you have the <getopt.h> header file. */
26 + /* Define if you have the <io.h> header file. */
29 /* Define if you have the <netdb.h> header file. */
35 /* Define if you have the <termios.h> header file. */
38 + /* Define if you have the <time.h> header file. */
41 /* Define if you have the <unistd.h> header file. */
44 + /* Define if you have the <winsock.h> header file. */
45 + #undef HAVE_WINSOCK_H
47 /* Define if you have the <x509.h> header file. */
50 Only in curl-6.3.1: config.log
51 Only in curl-6.3.1: config.status
52 Only in curl-6.3.1: configure
53 diff -cr curl-6.3.1-org/configure.in curl-6.3.1/configure.in
54 *** curl-6.3.1-org/configure.in Wed Nov 24 14:48:38 1999
55 --- curl-6.3.1/configure.in Thu Dec 9 14:34:36 1999
58 dnl $Id: curl_631_general.patch,v 1.1 1999-12-29 14:21:14 bagder Exp $
59 dnl Process this file with autoconf to produce a configure script.
60 AC_INIT(lib/urldata.h)
61 ! AM_CONFIG_HEADER(config.h)
62 AM_INIT_AUTOMAKE(curl,"6.3.1")
64 dnl Checks for programs.
66 dnl $Id: curl_631_general.patch,v 1.1 1999-12-29 14:21:14 bagder Exp $
67 dnl Process this file with autoconf to produce a configure script.
68 AC_INIT(lib/urldata.h)
69 ! AM_CONFIG_HEADER(config.h src/config.h)
70 AM_INIT_AUTOMAKE(curl,"6.3.1")
72 dnl Checks for programs.
81 dnl Check for libz header
93 dnl Check for libz header
113 Only in curl-6.3.1: configure.in~
114 Common subdirectories: curl-6.3.1-org/include and curl-6.3.1/include
115 Common subdirectories: curl-6.3.1-org/lib and curl-6.3.1/lib
116 Common subdirectories: curl-6.3.1-org/perl and curl-6.3.1/perl
117 Common subdirectories: curl-6.3.1-org/src and curl-6.3.1/src
118 Only in curl-6.3.1: stamp-h1
119 Common subdirectories: curl-6.3.1-org/include/curl and curl-6.3.1/include/curl
120 diff -cr curl-6.3.1-org/include/curl/curl.h curl-6.3.1/include/curl/curl.h
121 *** curl-6.3.1-org/include/curl/curl.h Wed Nov 24 14:48:37 1999
122 --- curl-6.3.1/include/curl/curl.h Wed Dec 8 15:34:53 1999
126 /* HTTP request, for odd commands like DELETE, TRACE and others */
127 T(HTTPREQUEST, OBJECTPOINT, 35),
129 + /* Progress mode sets alternative progress mode displays, the only
130 + one defined today is 1 which makes the #-style progress bar. */
131 + T(PROGRESSMODE, LONG, 36),
133 URGTAG_LASTENTRY /* the last unusued */
136 + #define CURL_PROGRESS_STATS 0 /* default progress display */
137 + #define CURL_PROGRESS_BAR 1
142 Only in curl-6.3.1/include/curl: curl.h~
143 Only in curl-6.3.1-org/include/curl: setup.h
144 Only in curl-6.3.1/include/curl: setup.h~
145 diff -cr curl-6.3.1-org/lib/Makefile curl-6.3.1/lib/Makefile
146 *** curl-6.3.1-org/lib/Makefile Wed Dec 8 13:38:22 1999
147 --- curl-6.3.1/lib/Makefile Thu Dec 9 15:42:21 1999
152 DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
155 ! LIBS = -ldl -lsocket -lnsl
157 libcurl_a_OBJECTS = file.o timeval.o base64.o hostip.o progress.o \
158 formdata.o upload.o cookie.o http.o sendf.o ftp.o url.o dict.o if2ip.o \
162 DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
163 ! CPPFLAGS = -I/homes/qradlsg/openssl-0.9.4/include
164 ! LDFLAGS = -L/homes/qradlsg/openssl-0.9.4
165 ! LIBS = -lssl -lcrypto -ldl -lsocket -lnsl
167 libcurl_a_OBJECTS = file.o timeval.o base64.o hostip.o progress.o \
168 formdata.o upload.o cookie.o http.o sendf.o ftp.o url.o dict.o if2ip.o \
171 speedcheck.o getdate.o download.o ldap.o ssluse.o version.o getenv.o \
172 escape.o mprintf.o telnet.o getpass.o netrc.o
175 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
177 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
179 speedcheck.o getdate.o download.o ldap.o ssluse.o version.o getenv.o \
180 escape.o mprintf.o telnet.o getpass.o netrc.o
182 ! CFLAGS = -g -O2 -Wall -pedantic
183 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
185 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
186 Only in curl-6.3.1/lib: Makefile~
187 diff -cr curl-6.3.1-org/lib/cookie.c curl-6.3.1/lib/cookie.c
188 *** curl-6.3.1-org/lib/cookie.c Fri Nov 12 15:54:59 1999
189 --- curl-6.3.1/lib/cookie.c Thu Dec 9 15:44:37 1999
195 ! #include <curl/setup.h>
198 /****************************************************************************
206 /****************************************************************************
211 ptr=strtok(NULL, ";");
212 ! while(ptr && *ptr && isspace(*ptr))
219 ptr=strtok(NULL, ";");
220 ! while(ptr && *ptr && isspace((int)*ptr))
227 char line[MAX_COOKIE_LINE];
228 struct CookieInfo *c;
232 c = (struct CookieInfo *)malloc(sizeof(struct CookieInfo));
236 if(strnequal("Set-Cookie:", line, 11)) {
237 /* This is a cookie line, get it! */
238 char *lineptr=&line[11];
239 ! while(*lineptr && isspace(*lineptr))
242 cookie_add(c, TRUE, lineptr);
244 if(strnequal("Set-Cookie:", line, 11)) {
245 /* This is a cookie line, get it! */
246 char *lineptr=&line[11];
247 ! while(*lineptr && isspace((int)*lineptr))
250 cookie_add(c, TRUE, lineptr);
254 /* This might be a netscape cookie-file line, get it! */
256 ! while(*lineptr && isspace(*lineptr))
259 cookie_add(c, FALSE, lineptr);
262 /* This might be a netscape cookie-file line, get it! */
264 ! while(*lineptr && isspace((int)*lineptr))
267 cookie_add(c, FALSE, lineptr);
268 Only in curl-6.3.1/lib: cookie.c~
269 Binary files curl-6.3.1-org/lib/cookie.o and curl-6.3.1/lib/cookie.o differ
270 diff -cr curl-6.3.1-org/lib/dict.c curl-6.3.1/lib/dict.c
271 *** curl-6.3.1-org/lib/dict.c Thu Oct 14 00:27:12 1999
272 --- curl-6.3.1/lib/dict.c Thu Dec 9 14:27:23 1999
278 ! #include <curl/setup.h>
280 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
288 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
290 Binary files curl-6.3.1-org/lib/dict.o and curl-6.3.1/lib/dict.o differ
291 diff -cr curl-6.3.1-org/lib/download.c curl-6.3.1/lib/download.c
292 *** curl-6.3.1-org/lib/download.c Tue Nov 23 09:24:26 1999
293 --- curl-6.3.1/lib/download.c Thu Dec 9 14:27:23 1999
299 ! #include <curl/setup.h>
311 Binary files curl-6.3.1-org/lib/download.o and curl-6.3.1/lib/download.o differ
312 diff -cr curl-6.3.1-org/lib/file.c curl-6.3.1/lib/file.c
313 *** curl-6.3.1-org/lib/file.c Fri Nov 19 08:25:40 1999
314 --- curl-6.3.1/lib/file.c Thu Dec 9 14:27:24 1999
320 ! #include <curl/setup.h>
322 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
330 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
332 Binary files curl-6.3.1-org/lib/file.o and curl-6.3.1/lib/file.o differ
333 diff -cr curl-6.3.1-org/lib/formdata.c curl-6.3.1/lib/formdata.c
334 *** curl-6.3.1-org/lib/formdata.c Tue Nov 23 17:54:36 1999
335 --- curl-6.3.1/lib/formdata.c Thu Dec 9 14:27:25 1999
341 ! #include <curl/setup.h>
342 #include <curl/curl.h>
343 #include "formdata.h"
350 #include <curl/curl.h>
351 #include "formdata.h"
353 Binary files curl-6.3.1-org/lib/formdata.o and curl-6.3.1/lib/formdata.o differ
354 diff -cr curl-6.3.1-org/lib/ftp.c curl-6.3.1/lib/ftp.c
355 *** curl-6.3.1-org/lib/ftp.c Tue Nov 23 09:25:06 1999
356 --- curl-6.3.1/lib/ftp.c Thu Dec 9 15:43:10 1999
362 ! #include <curl/setup.h>
378 from=strtol(data->range, &ptr, 0);
379 ! while(ptr && *ptr && (isspace(*ptr) || (*ptr=='-')))
381 to=strtol(ptr, &ptr2, 0);
386 from=strtol(data->range, &ptr, 0);
387 ! while(ptr && *ptr && (isspace((int)*ptr) || (*ptr=='-')))
389 to=strtol(ptr, &ptr2, 0);
395 /* if only skip digits, or else we're in deep trouble */
396 ! if(!isdigit(*bytes)) {
403 /* if only skip digits, or else we're in deep trouble */
404 ! if(!isdigit((int)*bytes)) {
408 Only in curl-6.3.1/lib: ftp.c~
409 Binary files curl-6.3.1-org/lib/ftp.o and curl-6.3.1/lib/ftp.o differ
410 diff -cr curl-6.3.1-org/lib/hostip.c curl-6.3.1/lib/hostip.c
411 *** curl-6.3.1-org/lib/hostip.c Thu Oct 14 00:27:12 1999
412 --- curl-6.3.1/lib/hostip.c Thu Dec 9 14:27:27 1999
418 ! #include <curl/setup.h>
420 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
428 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
430 Binary files curl-6.3.1-org/lib/hostip.o and curl-6.3.1/lib/hostip.o differ
431 diff -cr curl-6.3.1-org/lib/http.c curl-6.3.1/lib/http.c
432 *** curl-6.3.1-org/lib/http.c Sat Oct 30 17:43:52 1999
433 --- curl-6.3.1/lib/http.c Thu Dec 9 14:27:27 1999
439 ! #include <curl/setup.h>
441 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
449 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
451 Binary files curl-6.3.1-org/lib/http.o and curl-6.3.1/lib/http.o differ
452 diff -cr curl-6.3.1-org/lib/if2ip.c curl-6.3.1/lib/if2ip.c
453 *** curl-6.3.1-org/lib/if2ip.c Thu Oct 14 00:27:12 1999
454 --- curl-6.3.1/lib/if2ip.c Thu Dec 9 14:27:28 1999
460 ! #include <curl/setup.h>
472 diff -cr curl-6.3.1-org/lib/if2ip.h curl-6.3.1/lib/if2ip.h
473 *** curl-6.3.1-org/lib/if2ip.h Thu Oct 14 00:27:12 1999
474 --- curl-6.3.1/lib/if2ip.h Thu Dec 9 14:27:49 1999
478 * ------------------------------------------------------------
479 ****************************************************************************/
480 ! #include <curl/setup.h>
483 char *if2ip(char *interface);
486 * ------------------------------------------------------------
487 ****************************************************************************/
491 char *if2ip(char *interface);
492 Binary files curl-6.3.1-org/lib/if2ip.o and curl-6.3.1/lib/if2ip.o differ
493 diff -cr curl-6.3.1-org/lib/ldap.c curl-6.3.1/lib/ldap.c
494 *** curl-6.3.1-org/lib/ldap.c Thu Oct 14 00:27:12 1999
495 --- curl-6.3.1/lib/ldap.c Thu Dec 9 15:44:17 1999
498 #include <sys/stat.h>
501 ! #include <curl/setup.h>
503 #if defined(WIN32) && !defined(__GNUC__)
506 #include <sys/stat.h>
511 #if defined(WIN32) && !defined(__GNUC__)
516 struct UrlData *data = (struct UrlData *)param;
518 printf("%s\n", text);
522 /***********************************************************************
538 infof(data, "LDAP: %s %s\n", data->url);
539 Only in curl-6.3.1/lib: ldap.c~
540 Binary files curl-6.3.1-org/lib/ldap.o and curl-6.3.1/lib/ldap.o differ
541 Binary files curl-6.3.1-org/lib/libcurl.a and curl-6.3.1/lib/libcurl.a differ
542 diff -cr curl-6.3.1-org/lib/netrc.c curl-6.3.1/lib/netrc.c
543 *** curl-6.3.1-org/lib/netrc.c Thu Oct 14 00:27:12 1999
544 --- curl-6.3.1/lib/netrc.c Thu Dec 9 14:27:29 1999
550 ! #include <curl/setup.h>
553 /* Debug this single source file with:
561 /* Debug this single source file with:
562 Binary files curl-6.3.1-org/lib/netrc.o and curl-6.3.1/lib/netrc.o differ
563 diff -cr curl-6.3.1-org/lib/progress.c curl-6.3.1/lib/progress.c
564 *** curl-6.3.1-org/lib/progress.c Thu Oct 14 00:27:12 1999
565 --- curl-6.3.1/lib/progress.c Thu Dec 9 14:27:29 1999
568 ****************************************************************************/
571 ! #include <curl/setup.h>
573 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
574 #if defined(__MINGW32__)
576 ****************************************************************************/
581 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
582 #if defined(__MINGW32__)
585 /* --- start of progress routines --- */
588 - static int progressmode=0;
590 static int width = 0;
592 - void ProgressMode(int mode)
597 void ProgressInit(struct UrlData *data, int max)
599 ! static char beenhere=0;
601 ! if(beenhere || (data->conf&(CONF_NOPROGRESS|CONF_MUTE)))
606 /* TODO: get terminal width through ansi escapes or something similar.
608 /* --- start of progress routines --- */
612 static int width = 0;
614 void ProgressInit(struct UrlData *data, int max)
616 ! if(data->conf&(CONF_NOPROGRESS|CONF_MUTE))
621 /* TODO: get terminal width through ansi escapes or something similar.
627 ! if ( progressmode == URG_PROGRESS_MODE_STATS )
628 fprintf(stderr, " %% Received Total Speed Time left Total Curr.Speed\n");
635 ! if ( data->progressmode == CURL_PROGRESS_STATS )
636 fprintf(stderr, " %% Received Total Speed Time left Total Curr.Speed\n");
641 void ProgressShow(struct UrlData *data,
642 int point, struct timeval start, struct timeval now, bool force)
644 ! switch ( progressmode ) {
645 ! case URG_PROGRESS_MODE_STATS:
647 static long lastshow;
650 void ProgressShow(struct UrlData *data,
651 int point, struct timeval start, struct timeval now, bool force)
653 ! switch ( data->progressmode ) {
654 ! case CURL_PROGRESS_STATS:
656 static long lastshow;
660 lastshow = now.tv_sec;
663 ! case URG_PROGRESS_MODE_BAR: /* 19990617 larsa */
665 if (point == prev) break;
666 if (progressmax == -1) {
668 lastshow = now.tv_sec;
671 ! case CURL_PROGRESS_BAR: /* 19990617 larsa */
673 if (point == prev) break;
674 if (progressmax == -1) {
675 Only in curl-6.3.1/lib: progress.c~
676 diff -cr curl-6.3.1-org/lib/progress.h curl-6.3.1/lib/progress.h
677 *** curl-6.3.1-org/lib/progress.h Mon Sep 6 08:59:41 1999
678 --- curl-6.3.1/lib/progress.h Thu Dec 9 14:27:50 1999
681 /* Don't show progress for sizes smaller than: */
682 #define LEAST_SIZE_PROGRESS BUFSIZE
684 - /* we want more progress info modes... */
685 - #define URG_PROGRESS_MODE_STATS (0) /* default is the mode with value 0 */
686 - #define URG_PROGRESS_MODE_BAR (1)
688 #endif /* __PROGRESS_H */
690 Only in curl-6.3.1/lib: progress.h~
691 Binary files curl-6.3.1-org/lib/progress.o and curl-6.3.1/lib/progress.o differ
692 Only in curl-6.3.1/lib: replace.sh
693 Only in curl-6.3.1/lib: replace.sh~
694 diff -cr curl-6.3.1-org/lib/sendf.c curl-6.3.1/lib/sendf.c
695 *** curl-6.3.1-org/lib/sendf.c Thu Oct 14 00:27:12 1999
696 --- curl-6.3.1/lib/sendf.c Thu Dec 9 14:27:30 1999
702 ! #include <curl/setup.h>
714 Binary files curl-6.3.1-org/lib/sendf.o and curl-6.3.1/lib/sendf.o differ
715 Only in curl-6.3.1/lib: setup.h
716 Only in curl-6.3.1/lib: setup.h~
717 diff -cr curl-6.3.1-org/lib/speedcheck.h curl-6.3.1/lib/speedcheck.h
718 *** curl-6.3.1-org/lib/speedcheck.h Thu Oct 14 00:27:12 1999
719 --- curl-6.3.1/lib/speedcheck.h Thu Dec 9 14:27:50 1999
722 * ------------------------------------------------------------
723 ****************************************************************************/
725 ! #include <curl/setup.h>
730 * ------------------------------------------------------------
731 ****************************************************************************/
737 Binary files curl-6.3.1-org/lib/speedcheck.o and curl-6.3.1/lib/speedcheck.o differ
738 diff -cr curl-6.3.1-org/lib/ssluse.c curl-6.3.1/lib/ssluse.c
739 *** curl-6.3.1-org/lib/ssluse.c Mon Sep 6 08:59:41 1999
740 --- curl-6.3.1/lib/ssluse.c Thu Dec 9 14:27:30 1999
747 + #if SSL_VERIFY_CERT
748 + int cert_verify_callback(int ok, X509_STORE_CTX *ctx)
753 + err_cert=X509_STORE_CTX_get_current_cert(ctx);
754 + X509_NAME_oneline(X509_get_subject_name(err_cert),buf,256);
761 /* ====================================================== */
763 UrgSSLConnect (struct UrlData *data)
769 ! /* Lets make a SSL structure */
770 data->ssl = SSL_new (data->ctx);
771 SSL_set_connect_state (data->ssl);
778 ! #if SSL_VERIFY_CERT
779 ! SSL_CTX_set_verify(data->ctx,
780 ! SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT|
781 ! SSL_VERIFY_CLIENT_ONCE,
782 ! cert_verify_callback);
785 ! /* Lets make an SSL structure */
786 data->ssl = SSL_new (data->ctx);
787 SSL_set_connect_state (data->ssl);
792 /* We could do all sorts of certificate verification stuff here before
793 deallocating the certificate. */
796 + #if SSL_VERIFY_CERT
797 + infof(data, "Verify result: %d\n", SSL_get_verify_result(data->ssl));
802 X509_free (data->server_cert);
803 #else /* USE_SSLEAY */
804 /* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
805 Only in curl-6.3.1/lib: ssluse.c~
806 Binary files curl-6.3.1-org/lib/ssluse.o and curl-6.3.1/lib/ssluse.o differ
807 diff -cr curl-6.3.1-org/lib/telnet.c curl-6.3.1/lib/telnet.c
808 *** curl-6.3.1-org/lib/telnet.c Thu Oct 14 00:27:12 1999
809 --- curl-6.3.1/lib/telnet.c Thu Dec 9 14:27:31 1999
815 ! #include <curl/setup.h>
817 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
825 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
827 Binary files curl-6.3.1-org/lib/telnet.o and curl-6.3.1/lib/telnet.o differ
828 diff -cr curl-6.3.1-org/lib/timeval.h curl-6.3.1/lib/timeval.h
829 *** curl-6.3.1-org/lib/timeval.h Thu Oct 14 00:27:12 1999
830 --- curl-6.3.1/lib/timeval.h Thu Dec 9 14:27:51 1999
833 #include <sys/time.h>
836 ! #include <curl/setup.h>
838 #ifndef HAVE_GETTIMEOFDAY
839 #if !defined(_WINSOCKAPI_) && !defined(__MINGW32__)
841 #include <sys/time.h>
846 #ifndef HAVE_GETTIMEOFDAY
847 #if !defined(_WINSOCKAPI_) && !defined(__MINGW32__)
848 Binary files curl-6.3.1-org/lib/timeval.o and curl-6.3.1/lib/timeval.o differ
849 diff -cr curl-6.3.1-org/lib/upload.c curl-6.3.1/lib/upload.c
850 *** curl-6.3.1-org/lib/upload.c Thu Oct 14 00:27:12 1999
851 --- curl-6.3.1/lib/upload.c Thu Dec 9 14:27:32 1999
854 * ------------------------------------------------------------
855 ****************************************************************************/
857 ! #include <curl/setup.h>
862 * ------------------------------------------------------------
863 ****************************************************************************/
869 Binary files curl-6.3.1-org/lib/upload.o and curl-6.3.1/lib/upload.o differ
870 diff -cr curl-6.3.1-org/lib/url.c curl-6.3.1/lib/url.c
871 *** curl-6.3.1-org/lib/url.c Fri Nov 19 08:07:10 1999
872 --- curl-6.3.1/lib/url.c Thu Dec 9 14:27:32 1999
878 ! #include <curl/setup.h>
880 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
888 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
893 case URGTAG_POSTFIELDS:
894 data->postfields = (char *)param_obj;
896 + case URGTAG_PROGRESSMODE:
897 + data->progressmode = (long)param_long;
900 data->referer = (char *)param_obj;
902 Only in curl-6.3.1/lib: url.c~
903 Binary files curl-6.3.1-org/lib/url.o and curl-6.3.1/lib/url.o differ
904 diff -cr curl-6.3.1-org/lib/urldata.h curl-6.3.1/lib/urldata.h
905 *** curl-6.3.1-org/lib/urldata.h Sat Oct 30 17:44:42 1999
906 --- curl-6.3.1/lib/urldata.h Thu Dec 9 14:27:52 1999
910 /* This file is for lib internal stuff */
912 ! #include <curl/setup.h>
914 #ifndef MAXHOSTNAMELEN
915 #define MAXHOSTNAMELEN 256
918 /* This file is for lib internal stuff */
922 #ifndef MAXHOSTNAMELEN
923 #define MAXHOSTNAMELEN 256
928 char *headerbuff; /* allocated buffer to store headers in */
929 int headersize; /* size of the allocation */
930 + int progressmode; /* what kind of progress meter to display */
932 #define MAX_CURL_USER_LENGTH 128
933 #define MAX_CURL_PASSWORD_LENGTH 128
934 Only in curl-6.3.1/lib: urldata.h~
935 diff -cr curl-6.3.1-org/lib/version.c curl-6.3.1/lib/version.c
936 *** curl-6.3.1-org/lib/version.c Thu Oct 14 00:27:12 1999
937 --- curl-6.3.1/lib/version.c Thu Dec 9 14:27:32 1999
943 ! #include <curl/setup.h>
944 #include <curl/curl.h>
952 #include <curl/curl.h>
955 Binary files curl-6.3.1-org/lib/version.o and curl-6.3.1/lib/version.o differ
956 diff -cr curl-6.3.1-org/src/Makefile curl-6.3.1/src/Makefile
957 *** curl-6.3.1-org/src/Makefile Wed Dec 8 13:39:41 1999
958 --- curl-6.3.1/src/Makefile Thu Dec 9 14:47:51 1999
963 DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
965 ! LIBS = -ldl -lsocket -lnsl
966 curl_OBJECTS = main.o hugehelp.o urlglob.o
969 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
971 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
975 DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
976 ! LDFLAGS = -L/homes/qradlsg/openssl-0.9.4
977 ! LIBS = -lssl -lcrypto -ldl -lsocket -lnsl
978 curl_OBJECTS = main.o hugehelp.o urlglob.o
980 ! CFLAGS = -g -O2 -Wall
981 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
983 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
984 diff -cr curl-6.3.1-org/src/Makefile.in curl-6.3.1/src/Makefile.in
985 *** curl-6.3.1-org/src/Makefile.in Wed Dec 8 13:38:21 1999
986 --- curl-6.3.1/src/Makefile.in Thu Dec 9 14:40:07 1999
990 curl_OBJECTS = main.o hugehelp.o urlglob.o
993 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
995 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
998 curl_OBJECTS = main.o hugehelp.o urlglob.o
1000 ! CFLAGS = @CFLAGS@ -Wall
1001 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1003 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1004 Only in curl-6.3.1/src: Makefile.in~
1005 Only in curl-6.3.1/src: config-win32.h
1006 Only in curl-6.3.1/src: config-win32.h~
1007 Only in curl-6.3.1/src: config.h
1008 Only in curl-6.3.1/src: config.h.in
1009 Only in curl-6.3.1/src: config.h.in~
1010 Only in curl-6.3.1/src: curl
1011 Only in curl-6.3.1/src: hugehelp.c
1012 Binary files curl-6.3.1-org/src/hugehelp.o and curl-6.3.1/src/hugehelp.o differ
1013 diff -cr curl-6.3.1-org/src/main.c curl-6.3.1/src/main.c
1014 *** curl-6.3.1-org/src/main.c Sat Oct 30 17:45:12 1999
1015 --- curl-6.3.1/src/main.c Thu Dec 9 14:50:12 1999
1018 #include <sys/stat.h>
1021 ! #include "curl/setup.h"
1022 ! #include "curl/curl.h"
1023 ! #include "curl/mprintf.h"
1024 #include "../lib/getdate.h"
1026 #include "urlglob.h"
1028 #include <sys/stat.h>
1031 ! #include <curl/curl.h>
1032 ! #include <curl/mprintf.h>
1033 #include "../lib/getdate.h"
1035 #include "urlglob.h"
1038 #define CURLseparator "--_curl_--"
1039 #define MIMEseparator "_curl_"
1041 #include "version.h"
1046 #ifdef HAVE_UNISTD_H
1051 extern void hugehelp(void);
1052 - extern void ProgressMode(int);
1054 static void helpf(char *fmt, ...)
1057 #define CURLseparator "--_curl_--"
1058 #define MIMEseparator "_curl_"
1061 + /* This is now designed to have its own local setup.h */
1062 + #include "setup.h"
1064 #include "version.h"
1066 ! #ifdef HAVE_IO_H /* typical win32 habit */
1070 #ifdef HAVE_UNISTD_H
1074 extern void hugehelp(void);
1076 static void helpf(char *fmt, ...)
1084 + bool progressmode;
1086 FILE *errors; /* if stderr redirect is requested */
1091 config->errors = stdout;
1093 ! case '#': /* 19990617 larsa */
1100 config->errors = stdout;
1102 ! case '#': /* added 19990617 larsa */
1103 ! config->progressmode ^= CURL_PROGRESS_BAR;
1109 int infilesize=-1; /* -1 means unknown */
1110 bool stillflags=TRUE;
1114 struct Configurable config;
1117 int infilesize=-1; /* -1 means unknown */
1118 bool stillflags=TRUE;
1122 struct Configurable config;
1126 printf("Content-Type: multipart/mixed; boundary=%s\n\n", MIMEseparator);
1129 ! for (i = 0; url = next_url(urls); ++i) {
1131 config.outfile = strdup(outfiles);
1134 printf("Content-Type: multipart/mixed; boundary=%s\n\n", MIMEseparator);
1137 ! for (i = 0; (url = next_url(urls)); ++i) {
1139 config.outfile = strdup(outfiles);
1143 URGTAG_CRLF, config.crlf,
1144 URGTAG_QUOTE, config.quote,
1145 URGTAG_WRITEHEADER, headerfilep,
1147 URGTAG_COOKIEFILE, config.cookiefile,
1148 URGTAG_SSLVERSION, config.ssl_version,
1149 URGTAG_TIMECONDITION, config.timecond,
1150 URGTAG_TIMEVALUE, config.condtime,
1151 URGTAG_HTTPREQUEST, config.httprequest,
1152 URGTAG_DONE); /* always terminate the list of tags */
1154 config.errors = stderr;
1156 URGTAG_CRLF, config.crlf,
1157 URGTAG_QUOTE, config.quote,
1158 URGTAG_WRITEHEADER, headerfilep,
1159 URGTAG_COOKIEFILE, config.cookiefile,
1160 URGTAG_SSLVERSION, config.ssl_version,
1161 URGTAG_TIMECONDITION, config.timecond,
1162 URGTAG_TIMEVALUE, config.condtime,
1163 URGTAG_HTTPREQUEST, config.httprequest,
1164 + URGTAG_PROGRESSMODE, config.progressmode,
1165 URGTAG_DONE); /* always terminate the list of tags */
1167 config.errors = stderr;
1168 Only in curl-6.3.1/src: main.c~
1169 Binary files curl-6.3.1-org/src/main.o and curl-6.3.1/src/main.o differ
1170 Only in curl-6.3.1/src: setup.h
1171 Only in curl-6.3.1/src: setup.h~
1172 Only in curl-6.3.1/src: stamp-h2
1173 diff -cr curl-6.3.1-org/src/urlglob.c curl-6.3.1/src/urlglob.c
1174 *** curl-6.3.1-org/src/urlglob.c Thu Oct 14 00:28:43 1999
1175 --- curl-6.3.1/src/urlglob.c Wed Dec 8 16:55:55 1999
1182 + #include <ctype.h>
1183 #include <curl/curl.h>
1184 #include "urlglob.h"
1188 - num range with leading zeros: e.g. "001-999]"
1189 expression is checked for well-formedness and collected until the next ']'
1191 - char* buf = glob_buffer;
1198 /* patterns 0,1,2,... correspond to size=1,3,5,... */
1199 ++glob_expand->size;
1201 ! if (isalpha(*pattern)) { /* character range detected */
1202 pat->type = UPTCharRange;
1203 if (sscanf(pattern, "%c-%c]", &pat->content.CharRange.min_c, &pat->content.CharRange.max_c) != 2 ||
1204 pat->content.CharRange.min_c >= pat->content.CharRange.max_c ||
1206 /* patterns 0,1,2,... correspond to size=1,3,5,... */
1207 ++glob_expand->size;
1209 ! if (isalpha((int)*pattern)) { /* character range detected */
1210 pat->type = UPTCharRange;
1211 if (sscanf(pattern, "%c-%c]", &pat->content.CharRange.min_c, &pat->content.CharRange.max_c) != 2 ||
1212 pat->content.CharRange.min_c >= pat->content.CharRange.max_c ||
1215 return (pat->content.CharRange.max_c - pat->content.CharRange.min_c + 1) *
1216 glob_word(pattern + 4, pos + 4);
1218 ! if (isdigit(*pattern)) { /* numeric range detected */
1219 pat->type = UPTNumRange;
1220 pat->content.NumRange.padlength = 0;
1221 if (sscanf(pattern, "%d-%d]", &pat->content.NumRange.min_n, &pat->content.NumRange.max_n) != 2 ||
1223 return (pat->content.CharRange.max_c - pat->content.CharRange.min_c + 1) *
1224 glob_word(pattern + 4, pos + 4);
1226 ! if (isdigit((int)*pattern)) { /* numeric range detected */
1227 pat->type = UPTNumRange;
1228 pat->content.NumRange.padlength = 0;
1229 if (sscanf(pattern, "%d-%d]", &pat->content.NumRange.min_n, &pat->content.NumRange.max_n) != 2 ||
1233 if (*pattern == '0') { /* leading zero specified */
1235 ! while (isdigit(*c++))
1236 ++pat->content.NumRange.padlength; /* padding length is set for all instances
1241 if (*pattern == '0') { /* leading zero specified */
1243 ! while (isdigit((int)*c++))
1244 ++pat->content.NumRange.padlength; /* padding length is set for all instances
1250 while (*filename != '\0') {
1251 if (*filename == '#') {
1252 ! if (!isdigit(*++filename) ||
1253 *filename == '0') { /* only '#1' ... '#9' allowed */
1254 printf("illegal matching expression\n");
1255 exit(URG_URL_MALFORMAT);
1258 while (*filename != '\0') {
1259 if (*filename == '#') {
1260 ! if (!isdigit((int)*++filename) ||
1261 *filename == '0') { /* only '#1' ... '#9' allowed */
1262 printf("illegal matching expression\n");
1263 exit(URG_URL_MALFORMAT);
1264 Only in curl-6.3.1/src: urlglob.c~
1265 Binary files curl-6.3.1-org/src/urlglob.o and curl-6.3.1/src/urlglob.o differ