Skip to content

Commit d636c18

Browse files
author
minggo
committed
Merge pull request #213 from zilongshanren/upgrade-openssl-v3
[Don't merge] upgrade libcurl to 7.48 and openssl to 1.02g [ For v3]
2 parents bd87eeb + d025d1f commit d636c18

20 files changed

+280
-163
lines changed

curl/include/android/curl/curl.h

100755100644
+151-84
Large diffs are not rendered by default.

curl/include/android/curl/curlbuild.h

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* This software is licensed as described in the file COPYING, which
1414
* you should have received as part of this distribution. The terms
15-
* are also available at http://curl.haxx.se/docs/copyright.html.
15+
* are also available at https://curl.haxx.se/docs/copyright.html.
1616
*
1717
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1818
* copies of the Software, and permit persons to whom the Software is
@@ -36,7 +36,7 @@
3636
*
3737
* If you think that something actually needs to be changed, adjusted
3838
* or fixed in this file, then, report it on the libcurl development
39-
* mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
39+
* mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
4040
*
4141
* This header file shall only export symbols which are 'curl' or 'CURL'
4242
* prefixed, otherwise public name space would be polluted.

curl/include/android/curl/curlrules.h

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -47,7 +47,7 @@
4747
* library is properly built and used.
4848
*
4949
* You can find further help on the libcurl development mailing list:
50-
* http://cool.haxx.se/mailman/listinfo/curl-library/
50+
* https://cool.haxx.se/mailman/listinfo/curl-library/
5151
*
5252
* NOTE 2
5353
* ------

curl/include/android/curl/curlver.h

100755100644
+15-7
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2015, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -26,16 +26,16 @@
2626
a script at release-time. This was made its own header file in 7.11.2 */
2727

2828
/* This is the global package copyright */
29-
#define LIBCURL_COPYRIGHT "1996 - 2015 Daniel Stenberg, <[email protected]>."
29+
#define LIBCURL_COPYRIGHT "1996 - 2016 Daniel Stenberg, <[email protected]>."
3030

3131
/* This is the version number of the libcurl package from which this header
3232
file origins: */
33-
#define LIBCURL_VERSION "7.40.0"
33+
#define LIBCURL_VERSION "7.48.0"
3434

3535
/* The numeric version number is also available "in parts" by using these
3636
defines: */
3737
#define LIBCURL_VERSION_MAJOR 7
38-
#define LIBCURL_VERSION_MINOR 40
38+
#define LIBCURL_VERSION_MINOR 48
3939
#define LIBCURL_VERSION_PATCH 0
4040

4141
/* This is the numeric version of the libcurl version number, meant for easier
@@ -52,8 +52,12 @@
5252
This 6-digit (24 bits) hexadecimal number does not show pre-release number,
5353
and it is always a greater number in a more recent release. It makes
5454
comparisons with greater than and less than work.
55+
56+
Note: This define is the full hex number and _does not_ use the
57+
CURL_VERSION_BITS() macro since curl's own configure script greps for it
58+
and needs it to contain the full number.
5559
*/
56-
#define LIBCURL_VERSION_NUM 0x072800
60+
#define LIBCURL_VERSION_NUM 0x073000
5761

5862
/*
5963
* This is the date and time when the full source package was created. The
@@ -64,6 +68,10 @@
6468
*
6569
* "Mon Feb 12 11:35:33 UTC 2007"
6670
*/
67-
#define LIBCURL_TIMESTAMP "Thu Jan 8 08:17:17 UTC 2015"
71+
#define LIBCURL_TIMESTAMP "Wed Mar 23 06:57:50 UTC 2016"
72+
73+
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z)
74+
#define CURL_AT_LEAST_VERSION(x,y,z) \
75+
(LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
6876

6977
#endif /* __CURL_CURLVER_H */

curl/include/android/curl/easy.h

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is

curl/include/android/curl/mprintf.h

100755100644
+2-9
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2013, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2015, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -57,15 +57,8 @@ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
5757
# undef vaprintf
5858
# define printf curl_mprintf
5959
# define fprintf curl_mfprintf
60-
#ifdef CURLDEBUG
61-
/* When built with CURLDEBUG we define away the sprintf functions since we
62-
don't want internal code to be using them */
63-
# define sprintf sprintf_was_used
64-
# define vsprintf vsprintf_was_used
65-
#else
6660
# define sprintf curl_msprintf
6761
# define vsprintf curl_mvsprintf
68-
#endif
6962
# define snprintf curl_msnprintf
7063
# define vprintf curl_mvprintf
7164
# define vfprintf curl_mvfprintf

curl/include/android/curl/multi.h

100755100644
+38-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2013, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2015, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is
@@ -74,6 +74,11 @@ typedef enum {
7474
curl_multi_perform() and CURLM_CALL_MULTI_PERFORM */
7575
#define CURLM_CALL_MULTI_SOCKET CURLM_CALL_MULTI_PERFORM
7676

77+
/* bitmask bits for CURLMOPT_PIPELINING */
78+
#define CURLPIPE_NOTHING 0L
79+
#define CURLPIPE_HTTP1 1L
80+
#define CURLPIPE_MULTIPLEX 2L
81+
7782
typedef enum {
7883
CURLMSG_NONE, /* first, not used */
7984
CURLMSG_DONE, /* This easy handle has completed. 'result' contains
@@ -365,6 +370,12 @@ typedef enum {
365370
/* maximum number of open connections in total */
366371
CINIT(MAX_TOTAL_CONNECTIONS, LONG, 13),
367372

373+
/* This is the server push callback function pointer */
374+
CINIT(PUSHFUNCTION, FUNCTIONPOINT, 14),
375+
376+
/* This is the argument passed to the server push callback */
377+
CINIT(PUSHDATA, OBJECTPOINT, 15),
378+
368379
CURLMOPT_LASTENTRY /* the last unused */
369380
} CURLMoption;
370381

@@ -392,6 +403,31 @@ CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle,
392403
CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle,
393404
curl_socket_t sockfd, void *sockp);
394405

406+
407+
/*
408+
* Name: curl_push_callback
409+
*
410+
* Desc: This callback gets called when a new stream is being pushed by the
411+
* server. It approves or denies the new stream.
412+
*
413+
* Returns: CURL_PUSH_OK or CURL_PUSH_DENY.
414+
*/
415+
#define CURL_PUSH_OK 0
416+
#define CURL_PUSH_DENY 1
417+
418+
struct curl_pushheaders; /* forward declaration only */
419+
420+
CURL_EXTERN char *curl_pushheader_bynum(struct curl_pushheaders *h,
421+
size_t num);
422+
CURL_EXTERN char *curl_pushheader_byname(struct curl_pushheaders *h,
423+
const char *name);
424+
425+
typedef int (*curl_push_callback)(CURL *parent,
426+
CURL *easy,
427+
size_t num_headers,
428+
struct curl_pushheaders *headers,
429+
void *userp);
430+
395431
#ifdef __cplusplus
396432
} /* end of extern "C" */
397433
#endif

curl/include/android/curl/stdcheaders.h

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
14-
* are also available at http://curl.haxx.se/docs/copyright.html.
14+
* are also available at https://curl.haxx.se/docs/copyright.html.
1515
*
1616
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
1717
* copies of the Software, and permit persons to whom the Software is

0 commit comments

Comments
 (0)