Skip to content

Commit 3cb27ce

Browse files
committed
Updated to libcurl 7.72.0
1 parent e11ca4f commit 3cb27ce

File tree

6 files changed

+35
-29
lines changed

6 files changed

+35
-29
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cd Build-OpenSSL-cURL
4444
Default versions are specified in the `build.sh` script but you can specify the version you want to build via the command line, e.g.:
4545

4646
```bash
47-
./build.sh -o 1.1.1g -c 7.71.1 -n 1.41.0
47+
./build.sh -o 1.1.1g -c 7.72.0 -n 1.41.0
4848
```
4949

5050
You can update the default version by editing this section in the `build.sh` script:
@@ -55,7 +55,7 @@ You can update the default version by editing this section in the `build.sh` scr
5555
################################################
5656

5757
OPENSSL="1.1.1g" # https://www.openssl.org/source/
58-
LIBCURL="7.71.1" # https://curl.haxx.se/download.html
58+
LIBCURL="7.72.0" # https://curl.haxx.se/download.html
5959
NGHTTP2="1.41.0" # https://nghttp2.org/
6060

6161
################################################

build.sh

+11-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
################################################
1212

1313
OPENSSL="1.1.1g" # https://www.openssl.org/source/
14-
LIBCURL="7.71.1" # https://curl.haxx.se/download.html
14+
LIBCURL="7.72.0" # https://curl.haxx.se/download.html
1515
NGHTTP2="1.41.0" # https://nghttp2.org/
1616

1717
################################################
@@ -22,6 +22,7 @@ buildnghttp2="-n"
2222
disablebitcode=""
2323
colorflag=""
2424
catalyst=""
25+
sslv3=""
2526

2627
# Formatting
2728
default="\033[39m"
@@ -42,7 +43,7 @@ usage ()
4243
echo
4344
echo -e "${bold}Usage:${normal}"
4445
echo
45-
echo -e " ${subbold}$0${normal} [-o ${dim}<OpenSSL version>${normal}] [-c ${dim}<curl version>${normal}] [-n ${dim}<nghttp2 version>${normal}] [-d] [-e] [-x] [-h]"
46+
echo -e " ${subbold}$0${normal} [-o ${dim}<OpenSSL version>${normal}] [-c ${dim}<curl version>${normal}] [-n ${dim}<nghttp2 version>${normal}] [-d] [-e] [-3] [-x] [-h]"
4647
echo
4748
echo " -o <version> Build OpenSSL version (default $OPENSSL)"
4849
echo " -c <version> Build curl version (default $LIBCURL)"
@@ -51,13 +52,14 @@ usage ()
5152
echo " -e Compile with OpenSSL engine support"
5253
echo " -b Compile without bitcode"
5354
echo " -m Compile Mac Catalyst library [beta]"
55+
echo " -3 Compile with SSLv3"
5456
echo " -x No color output"
5557
echo " -h Show usage"
5658
echo
5759
exit 127
5860
}
5961

60-
while getopts "o:c:n:debmxh\?" o; do
62+
while getopts "o:c:n:debm3xh\?" o; do
6163
case "${o}" in
6264
o)
6365
OPENSSL="${OPTARG}"
@@ -78,8 +80,11 @@ while getopts "o:c:n:debmxh\?" o; do
7880
disablebitcode="-b"
7981
;;
8082
m)
81-
catalyst="-m"
82-
;;
83+
catalyst="-m"
84+
;;
85+
3)
86+
sslv3="-3"
87+
;;
8388
x)
8489
bold=""
8590
subbold=""
@@ -112,7 +117,7 @@ START=$(date +%s)
112117
echo
113118
cd openssl
114119
echo -e "${bold}Building OpenSSL${normal}"
115-
./openssl-build.sh -v "$OPENSSL" $engine $colorflag $catalyst
120+
./openssl-build.sh -v "$OPENSSL" $engine $colorflag $catalyst $sslv3
116121
cd ..
117122

118123
## Nghttp2 Build

example/iOS Test App/include/curl/curl.h

+11-6
Original file line numberDiff line numberDiff line change
@@ -2634,10 +2634,6 @@ typedef enum {
26342634
CURLINFO_PROXY_SSL_VERIFYRESULT = CURLINFO_LONG + 47,
26352635
CURLINFO_PROTOCOL = CURLINFO_LONG + 48,
26362636
CURLINFO_SCHEME = CURLINFO_STRING + 49,
2637-
/* Fill in new entries below here! */
2638-
2639-
/* Preferably these would be defined conditionally based on the
2640-
sizeof curl_off_t being 64-bits */
26412637
CURLINFO_TOTAL_TIME_T = CURLINFO_OFF_T + 50,
26422638
CURLINFO_NAMELOOKUP_TIME_T = CURLINFO_OFF_T + 51,
26432639
CURLINFO_CONNECT_TIME_T = CURLINFO_OFF_T + 52,
@@ -2646,8 +2642,9 @@ typedef enum {
26462642
CURLINFO_REDIRECT_TIME_T = CURLINFO_OFF_T + 55,
26472643
CURLINFO_APPCONNECT_TIME_T = CURLINFO_OFF_T + 56,
26482644
CURLINFO_RETRY_AFTER = CURLINFO_OFF_T + 57,
2645+
CURLINFO_EFFECTIVE_METHOD = CURLINFO_STRING + 58,
26492646

2650-
CURLINFO_LASTONE = 57
2647+
CURLINFO_LASTONE = 58
26512648
} CURLINFO;
26522649

26532650
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
@@ -2748,6 +2745,7 @@ typedef enum {
27482745
CURLVERSION_FIFTH,
27492746
CURLVERSION_SIXTH,
27502747
CURLVERSION_SEVENTH,
2748+
CURLVERSION_EIGHTH,
27512749
CURLVERSION_LAST /* never actually use this */
27522750
} CURLversion;
27532751

@@ -2756,7 +2754,7 @@ typedef enum {
27562754
meant to be a built-in version number for what kind of struct the caller
27572755
expects. If the struct ever changes, we redefine the NOW to another enum
27582756
from above. */
2759-
#define CURLVERSION_NOW CURLVERSION_SEVENTH
2757+
#define CURLVERSION_NOW CURLVERSION_EIGHTH
27602758

27612759
struct curl_version_info_data {
27622760
CURLversion age; /* age of the returned struct */
@@ -2802,6 +2800,11 @@ struct curl_version_info_data {
28022800
const char *capath; /* the built-in default CURLOPT_CAPATH, might
28032801
be NULL */
28042802

2803+
/* These fields were added in CURLVERSION_EIGHTH */
2804+
unsigned int zstd_ver_num; /* Numeric Zstd version
2805+
(MAJOR << 24) | (MINOR << 12) | PATCH */
2806+
const char *zstd_version; /* human readable string. */
2807+
28052808
};
28062809
typedef struct curl_version_info_data curl_version_info_data;
28072810

@@ -2836,6 +2839,8 @@ typedef struct curl_version_info_data curl_version_info_data;
28362839
#define CURL_VERSION_BROTLI (1<<23) /* Brotli features are present. */
28372840
#define CURL_VERSION_ALTSVC (1<<24) /* Alt-Svc handling built-in */
28382841
#define CURL_VERSION_HTTP3 (1<<25) /* HTTP3 support built-in */
2842+
#define CURL_VERSION_ZSTD (1<<26) /* zstd features are present */
2843+
#define CURL_VERSION_UNICODE (1<<27) /* Unicode support on Windows */
28392844

28402845
/*
28412846
* NAME curl_version_info()

example/iOS Test App/include/curl/curlver.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030

3131
/* This is the version number of the libcurl package from which this header
3232
file origins: */
33-
#define LIBCURL_VERSION "7.71.1"
33+
#define LIBCURL_VERSION "7.72.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 71
39-
#define LIBCURL_VERSION_PATCH 1
38+
#define LIBCURL_VERSION_MINOR 72
39+
#define LIBCURL_VERSION_PATCH 0
4040

4141
/* This is the numeric version of the libcurl version number, meant for easier
4242
parsing and comparisons by programs. The LIBCURL_VERSION_NUM define will
@@ -57,7 +57,7 @@
5757
CURL_VERSION_BITS() macro since curl's own configure script greps for it
5858
and needs it to contain the full number.
5959
*/
60-
#define LIBCURL_VERSION_NUM 0x074701
60+
#define LIBCURL_VERSION_NUM 0x074800
6161

6262
/*
6363
* This is the date and time when the full source package was created. The
@@ -68,7 +68,7 @@
6868
*
6969
* "2007-11-23"
7070
*/
71-
#define LIBCURL_TIMESTAMP "2020-07-01"
71+
#define LIBCURL_TIMESTAMP "2020-08-19"
7272

7373
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
7474
#define CURL_AT_LEAST_VERSION(x,y,z) \

example/iOS Test App/include/curl/multi.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,14 @@ CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle,
427427
* Name: curl_push_callback
428428
*
429429
* Desc: This callback gets called when a new stream is being pushed by the
430-
* server. It approves or denies the new stream.
430+
* server. It approves or denies the new stream. It can also decide
431+
* to completely fail the connection.
431432
*
432-
* Returns: CURL_PUSH_OK or CURL_PUSH_DENY.
433+
* Returns: CURL_PUSH_OK, CURL_PUSH_DENY or CURL_PUSH_ERROROUT
433434
*/
434-
#define CURL_PUSH_OK 0
435-
#define CURL_PUSH_DENY 1
435+
#define CURL_PUSH_OK 0
436+
#define CURL_PUSH_DENY 1
437+
#define CURL_PUSH_ERROROUT 2 /* added in 7.72.0 */
436438

437439
struct curl_pushheaders; /* forward declaration only */
438440

example/iOS Test App/include/openssl/opensslconf.h

-6
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ extern "C" {
8484
#ifndef OPENSSL_NO_SCTP
8585
# define OPENSSL_NO_SCTP
8686
#endif
87-
#ifndef OPENSSL_NO_SSL3
88-
# define OPENSSL_NO_SSL3
89-
#endif
90-
#ifndef OPENSSL_NO_SSL3_METHOD
91-
# define OPENSSL_NO_SSL3_METHOD
92-
#endif
9387
#ifndef OPENSSL_NO_UBSAN
9488
# define OPENSSL_NO_UBSAN
9589
#endif

0 commit comments

Comments
 (0)