platform/upstream/curl.git
6 years ago[CVE-2017-9502] url: fix buffer overwrite with file protocol 79/134479/2 accepted/tizen/unified/20170706.193711 submit/tizen/20170620.102303 submit/tizen/20170630.012307 submit/tizen/20170703.231407 submit/tizen/20170705.224745
Daniel Stenberg [Tue, 6 Jun 2017 22:21:04 +0000 (00:21 +0200)]
[CVE-2017-9502] url: fix buffer overwrite with file protocol

https://github.com/curl/curl/issues/1540

Change-Id: Ic0c511886a16d0655e416882ee9719d1ac120be6

6 years ago[CVE-2017-7468] TLS: Fix switching off SSL session id when client cert is used 75/134475/2
Jay Satiro [Wed, 22 Mar 2017 05:59:49 +0000 (01:59 -0400)]
[CVE-2017-7468] TLS: Fix switching off SSL session id when client cert is used

- Move the sessionid flag to ssl_primary_config so that ssl and
  proxy_ssl will each have their own sessionid flag.

Regression since HTTPS-Proxy support was added in cb4e2be. Prior to that
this issue had been fixed in 247d890, CVE-2016-5419.

https://github.com/curl/curl/issues/1341

Change-Id: I3e6e176dafc6e6f103e5d9c077835f620783a3b1

6 years ago[CVE-2017-7407] --write-out out of buffer read 74/134474/1
Seonah Moon [Mon, 19 Jun 2017 01:15:46 +0000 (10:15 +0900)]
[CVE-2017-7407] --write-out out of buffer read

https://curl.haxx.se/docs/adv_20170403.html

Change-Id: I3cc866289e8929b52d31914f2f3164e18a2e1b5d
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
6 years agoRevert "Add dependency of nghttp2-devel" 78/133078/1
taesub kim [Fri, 9 Jun 2017 01:40:59 +0000 (01:40 +0000)]
Revert "Add dependency of nghttp2-devel"

This reverts commit 129a8fb222e334176769a51ab28cdc0923af4ece.

Change-Id: Icc2a618a477fec16c28256a2ea36dd8a10fe114c

6 years agoAdd dependency of nghttp2-devel 78/132878/1 submit/tizen/20170608.073827
Seonah Moon [Thu, 8 Jun 2017 06:15:47 +0000 (15:15 +0900)]
Add dependency of nghttp2-devel

Change-Id: Ib78ccd11318ed885fd19f3b809c1b47c94167b4f
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoUsed %license macro 05/121605/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170329.171915 accepted/tizen/ivi/20170329.034906 accepted/tizen/mobile/20170329.034827 accepted/tizen/tv/20170329.034844 accepted/tizen/unified/20170329.034932 accepted/tizen/wearable/20170329.034853 submit/tizen/20170328.111440 tizen_4.0.m1_release
Seonah Moon [Tue, 28 Mar 2017 10:07:37 +0000 (19:07 +0900)]
Used %license macro

Change-Id: Ia5c38d98ea11d1e457014f7210913261a59f5b43

7 years agoUpdate version to 7.53.1 83/120583/1 accepted/tizen/common/20170323.154553 accepted/tizen/ivi/20170324.023348 accepted/tizen/mobile/20170324.023258 accepted/tizen/tv/20170324.023313 accepted/tizen/unified/20170324.023404 accepted/tizen/wearable/20170324.023330 submit/tizen/20170323.081345 submit/tizen/20170323.081420
Seonah Moon [Thu, 23 Mar 2017 08:02:09 +0000 (17:02 +0900)]
Update version to 7.53.1

Change-Id: I1833883d4e258c60fb93020688eb7e3ff3e2eb47

7 years agoImported Upstream version 7.53.1 59/120559/1 upstream/7.53.1
taesub kim [Thu, 23 Mar 2017 07:45:32 +0000 (16:45 +0900)]
Imported Upstream version 7.53.1

Change-Id: Id0454e17b6cb083c803c5497d34964dd8fa0dbc6

7 years agoRevert "Imported Upstream version 7.53.1" 51/120551/1
taesub kim [Thu, 23 Mar 2017 07:38:33 +0000 (00:38 -0700)]
Revert "Imported Upstream version 7.53.1"

This reverts commit e9bdad71c8277e20607fa1eaf0027d53a0dc1f37.

Change-Id: I4a4edd3ce2207a6f13162aaaf92467a7c1dffd72

7 years agoRevert "Changed the path of license by using '%license' macro" 47/120547/1
taesub kim [Thu, 23 Mar 2017 07:35:59 +0000 (00:35 -0700)]
Revert "Changed the path of license by using '%license' macro"

This reverts commit 3487493aece049d88444f96dee3a2d3f4fdfbb9c.

Change-Id: I1e29fb50e16c45d649779de96404adbc184f1f5e

7 years agoChanged the path of license by using '%license' macro 03/120203/1
Seonah Moon [Wed, 22 Mar 2017 05:43:30 +0000 (14:43 +0900)]
Changed the path of license by using '%license' macro

Change-Id: I685efdeb2ab23b18d7935a95e42690d723db632c
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoImported Upstream version 7.53.1 94/120194/1
taesub kim [Wed, 22 Mar 2017 05:21:38 +0000 (14:21 +0900)]
Imported Upstream version 7.53.1

Change-Id: I575eb99bf2face4938a57889412327e285116bf3

7 years agoares: Curl_resolver_wait_resolv: clear *entry first in function 17/118017/1 accepted/tizen/common/20170309.175438 accepted/tizen/ivi/20170310.031655 accepted/tizen/mobile/20170310.031333 accepted/tizen/tv/20170310.031505 accepted/tizen/unified/20170310.080622 accepted/tizen/wearable/20170310.031552 submit/tizen/20170309.032538 submit/tizen_unified/20170310.011402
Daniel Stenberg [Tue, 7 Mar 2017 07:08:55 +0000 (08:08 +0100)]
ares: Curl_resolver_wait_resolv: clear *entry first in function

Change-Id: Ia55a6ca41ba2c75fedd114fcfb8aef8ddb968e4e
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agoares: better error return on timeouts 16/118016/1
Daniel Stenberg [Mon, 6 Mar 2017 21:45:10 +0000 (22:45 +0100)]
ares: better error return on timeouts

Assisted-by: Ray Satiro
Bug: https://curl.haxx.se/mail/lib-2017-03/0009.html

Change-Id: I7779aa144996b539d7a706b776cee09eebae6dcb
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agoares: return error at once if timed out before name resolve starts 68/117568/1 accepted/tizen/common/20170309.175136 accepted/tizen/ivi/20170308.121240 accepted/tizen/mobile/20170308.121208 accepted/tizen/tv/20170308.121224 accepted/tizen/wearable/20170308.121232 submit/tizen/20170308.045955
Daniel Stenberg [Mon, 6 Mar 2017 08:21:01 +0000 (09:21 +0100)]
ares: return error at once if timed out before name resolve starts

Pointed-out-by: Ray Satiro
Bug: https://curl.haxx.se/mail/lib-2017-03/0004.html

Change-Id: I7c38e9dc6f386001692fa3b02f5bba00b59f4f45
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years ago[P161227-02691, P161220-01444] Force ongoing connections to close in close_all_connec... 06/107806/1 accepted/tizen/common/20161230.123828 accepted/tizen/ivi/20170101.224045 accepted/tizen/mobile/20170101.223952 accepted/tizen/tv/20170101.224009 accepted/tizen/unified/20170309.035036 accepted/tizen/wearable/20170101.224026 submit/tizen/20161230.055600 submit/tizen_unified/20170308.100411
Seonah Moon [Thu, 29 Dec 2016 10:18:45 +0000 (19:18 +0900)]
[P161227-02691, P161220-01444] Force ongoing connections to close in close_all_connections()

Bug: https://curl.haxx.se/mail/lib-2016-10/0011.html
Bug: https://curl.haxx.se/mail/lib-2016-10/0059.html

Change-Id: I6e015569958cc0da3bd9b03f17d4b32d475ebd0e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoRemove dependency with ca-certificates 45/99845/1 accepted/tizen/common/20161125.095652 accepted/tizen/ivi/20161128.000911 accepted/tizen/mobile/20161128.000841 accepted/tizen/tv/20161128.000847 accepted/tizen/wearable/20161128.000853 submit/tizen/20161125.054626
Seonah Moon [Thu, 24 Nov 2016 08:27:17 +0000 (17:27 +0900)]
Remove dependency with ca-certificates

Change-Id: Ic4b50ae08734463d9d1a37f86ec60a8f2459e818
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years ago[CVE-2016-7167] curl escape and unescape integer overflows 35/99235/2
Seonah Moon [Tue, 22 Nov 2016 07:53:24 +0000 (16:53 +0900)]
[CVE-2016-7167] curl escape and unescape integer overflows

Change-Id: Iffbaa7823c992cd93b8961ce69e7f6ac3f903e36
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd default CA bundle 20/97420/1 accepted/tizen/common/20161116.134437 accepted/tizen/ivi/20161117.010112 accepted/tizen/mobile/20161117.005959 accepted/tizen/tv/20161117.010014 accepted/tizen/wearable/20161117.010021 submit/tizen/20161116.043314
Seonah Moon [Mon, 14 Nov 2016 06:50:11 +0000 (15:50 +0900)]
Add default CA bundle

Change-Id: Icc8dd83f8ab59cb18e6d9d6a7f732c6d1ba7cfa4
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd default cipher list for TV 35/91235/1 accepted/tizen/3.0/common/20161114.110458 accepted/tizen/3.0/ivi/20161028.151254 accepted/tizen/3.0/mobile/20161028.143148 accepted/tizen/3.0/tv/20161028.143457 accepted/tizen/3.0/wearable/20161028.150825 accepted/tizen/common/20161012.154243 accepted/tizen/ivi/20161012.113719 accepted/tizen/mobile/20161012.113637 accepted/tizen/tv/20161012.113655 accepted/tizen/wearable/20161012.113703 submit/tizen/20161012.014104 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000
Seonah Moon [Thu, 1 Oct 2015 04:27:10 +0000 (13:27 +0900)]
Add default cipher list for TV

Change-Id: Ibe293221f37388b85aed58ec40793baac2cccd14
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoopenssl: fix bad memory free (regression) 67/90767/2 accepted/tizen/3.0/ivi/20161011.043815 accepted/tizen/3.0/mobile/20161015.032650 accepted/tizen/3.0/tv/20161016.004006 accepted/tizen/3.0/wearable/20161015.081908 accepted/tizen/common/20161004.194334 accepted/tizen/ivi/20161005.080315 accepted/tizen/mobile/20161005.080228 accepted/tizen/tv/20161005.080243 accepted/tizen/wearable/20161005.080258 submit/tizen/20161004.080743 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
Seonah Moon [Tue, 4 Oct 2016 07:35:59 +0000 (16:35 +0900)]
openssl: fix bad memory free (regression)

The allocation could be made by OpenSSL so the free must be made with OPENSSL_free() to avoid problems.
(https://github.com/curl/curl/issues/1005)

Change-Id: I07527924fe20ed859cbd5d7ade356410c64d71c7
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoUpdate to 7.50.2 00/89300/3 accepted/tizen/common/20160928.164154 accepted/tizen/ivi/20160929.081233 accepted/tizen/mobile/20160929.081128 accepted/tizen/tv/20160929.081209 accepted/tizen/wearable/20160929.081050 submit/tizen/20160928.053415
Seonah Moon [Fri, 23 Sep 2016 05:12:16 +0000 (14:12 +0900)]
Update to 7.50.2

Change-Id: I1c5ba709c310e2c1735c12102e48f71d3413146b

7 years agoImported Upstream version 7.50.2 93/89293/1 upstream/7.50.2
Seonah Moon [Fri, 23 Sep 2016 04:49:53 +0000 (13:49 +0900)]
Imported Upstream version 7.50.2

Change-Id: I91c6040940a21b2bebab9d6cab11d50767b7bac4

7 years agoChange build macro for Tizen TV 03/85603/2 accepted/tizen/common/20160831.161403 accepted/tizen/ivi/20160831.124347 accepted/tizen/mobile/20160831.124257 accepted/tizen/tv/20160831.124311 accepted/tizen/wearable/20160831.124332 submit/tizen/20160831.004932
Seonah Moon [Fri, 26 Aug 2016 05:29:23 +0000 (14:29 +0900)]
Change build macro for Tizen TV

This macro is ignored on build.tizen.org
It's only for Tizen TV build system

Change-Id: I0aa69505ddcfc1973d864f260d2b5e3f2fd87a3d
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoAdd default cipher list for TV 46/82546/2 accepted/tizen/common/20160805.130015 accepted/tizen/ivi/20160809.010914 accepted/tizen/mobile/20160809.010827 accepted/tizen/tv/20160809.010845 accepted/tizen/wearable/20160809.010903 submit/tizen/20160805.043859
Seonah Moon [Thu, 1 Oct 2015 04:27:10 +0000 (13:27 +0900)]
Add default cipher list for TV

Change-Id: I91579c36473a9619d00990c5897831006d89670f
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years ago[CVE-2016-4802] Windows DLL hijacking 89/75889/2 accepted/tizen/common/20160627.191214 accepted/tizen/ivi/20160623.121440 accepted/tizen/mobile/20160623.121352 accepted/tizen/tv/20160623.121405 accepted/tizen/wearable/20160623.121428 submit/tizen/20160622.070923
Seonah Moon [Wed, 22 Jun 2016 05:43:54 +0000 (14:43 +0900)]
[CVE-2016-4802] Windows DLL hijacking

Change-Id: I52bc7cb34ac493c20588876294d59039af03cbe1
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years ago[CVE-2016-3739] TLS certificate check bypass with mbedTLS/PolarSSL 82/75882/1
Seonah Moon [Wed, 22 Jun 2016 05:23:07 +0000 (14:23 +0900)]
[CVE-2016-3739] TLS certificate check bypass with mbedTLS/PolarSSL

Change-Id: I76d120f5c9e696ecd402a2099b94759cc22a51e2
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
8 years agoMerge branch 'upstream' into tizen 63/67263/3 accepted/tizen/common/20160427.144109 accepted/tizen/ivi/20160428.002447 accepted/tizen/mobile/20160428.004551 accepted/tizen/tv/20160428.002324 accepted/tizen/wearable/20160428.002544 submit/tizen/20160427.070140
Seonah Moon [Tue, 26 Apr 2016 05:52:32 +0000 (14:52 +0900)]
Merge branch 'upstream' into tizen

Upgrade version 7.48.0

Change-Id: Ibb643307cb5add844a733bb23cb6051bc0fdb100
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
8 years agoImported Upstream version 7.48.0 46/67046/1 upstream/7.48.0
taesubkim [Mon, 25 Apr 2016 01:21:23 +0000 (10:21 +0900)]
Imported Upstream version 7.48.0

Change-Id: Ibca5368d95ef0b73c945bb0df8b7ef9fc3e3bd82
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
8 years agoRevert "Imported Upstream version 7.44.0" 73/65573/1
seonah moon [Mon, 11 Apr 2016 11:05:33 +0000 (04:05 -0700)]
Revert "Imported Upstream version 7.44.0"

This reverts commit 8a08705db260779441360e959b97b6c172f8acb0.

Change-Id: Ie319aab9015869b714a03b8aa890a67ccbc9233e

8 years agoRevert "Update to 7.44.0" 72/65072/1
seonah moon [Thu, 7 Apr 2016 06:59:58 +0000 (23:59 -0700)]
Revert "Update to 7.44.0"

This reverts commit 2bc9d6bb53df44a0c5174767de734620c2cdfd9e.

Change-Id: I831001a99b6ad80dc062c84b3877208e1b40b80a

8 years agoUpdate to 7.44.0 38/65038/2 submit/tizen/20160407.062150
Seonah Moon [Thu, 7 Apr 2016 04:35:45 +0000 (13:35 +0900)]
Update to 7.44.0

Change-Id: I5b1e06765d1fe3c75597ff7db9831228ea0cad05
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
8 years agoImported Upstream version 7.44.0 35/65035/1
Seonah Moon [Thu, 7 Apr 2016 02:41:57 +0000 (11:41 +0900)]
Imported Upstream version 7.44.0

Change-Id: I04e7fac0b620653ff8c174e87039756e98c4fb02

8 years agoRevert "Imported Upstream version 7.44.0" 20/65020/1
seonah moon [Thu, 7 Apr 2016 02:31:17 +0000 (19:31 -0700)]
Revert "Imported Upstream version 7.44.0"

This reverts commit 31368b6eac8092a307849518e912b4c475c0238a.

Change-Id: I3428294b4931a00ba9684528d3ffb326f92ed4e8

8 years agoImported Upstream version 7.44.0 13/65013/1
Seonah Moon [Thu, 7 Apr 2016 01:07:19 +0000 (10:07 +0900)]
Imported Upstream version 7.44.0

Change-Id: Iacb2e604edff0cb8e7687289419ad1908a7a9de6

8 years agoReplace 'tizen_profile_name' to 'profile' for Tizen 3.0 95/53695/1 accepted/tizen/ivi/20160218.024439 accepted/tizen/mobile/20151210.024359 accepted/tizen/tv/20151210.020811 accepted/tizen/wearable/20151210.013903 submit/tizen/20151209.020712 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000004
Seonah Moon [Wed, 9 Dec 2015 00:58:55 +0000 (09:58 +0900)]
Replace 'tizen_profile_name' to 'profile' for Tizen 3.0

Change-Id: I92101758608b72134f28d38fc11d01c527d2f05e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
8 years agoUpgrade upstream version to 7.40.0 19/51819/1 accepted/tizen/mobile/20151117.093731 accepted/tizen/tv/20151117.093805 accepted/tizen/wearable/20151117.093842 submit/tizen/20151117.023414
taesub.kim [Mon, 16 Nov 2015 10:07:08 +0000 (19:07 +0900)]
Upgrade upstream version to 7.40.0

Change-Id: I60df9f32924246f842db1056534bb707e77b431e

8 years agoImported Upstream version 7.40.0 07/51807/1
taesub.kim [Mon, 16 Nov 2015 08:28:24 +0000 (17:28 +0900)]
Imported Upstream version 7.40.0

Change-Id: I744943f451cb7db8f796a53f10dd6f57c297287d

8 years agoBase code merged to SPIN 2.4 99/51799/1
taesub.kim [Mon, 16 Nov 2015 08:23:25 +0000 (17:23 +0900)]
Base code merged to SPIN 2.4

Change-Id: I345fdf6d033fc695d6f3f3ea0c55e7c8b542e348

8 years agoRevert "Update to 7.40.1" 94/51594/1
taesub kim [Wed, 11 Nov 2015 05:34:24 +0000 (21:34 -0800)]
Revert "Update to 7.40.1"

This reverts commit 32de14ae0782822e9c54c3fbb28cdefc1f4de969.

Change-Id: I955d8a59ce444eac32b74264d98272297ac51b9b

8 years agoUpdate to 7.40.1 63/51363/1 submit/tizen/20151109.080918 submit/tizen/20151109.080942 submit/tizen/20151109.082943
Seonah Moon [Mon, 9 Nov 2015 06:25:57 +0000 (15:25 +0900)]
Update to 7.40.1

Change-Id: I91d61adf7c97502bbc4370c6b095bbe39aa6cb60
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
9 years agoBump to version 7.37.1 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/common/20141219.103911 accepted/tizen/ivi/20141225.103508 accepted/tizen/mobile/20150105.022452 accepted/tizen/tv/20141222.013000 accepted/tizen/wearable/20141222.013058 submit/tizen/20141212.141744 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20141225.222222 submit/tizen_mobile/20141231.012840 submit/tizen_mobile/20151202.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
Kévin THIERRY [Thu, 30 Oct 2014 15:26:04 +0000 (16:26 +0100)]
Bump to version 7.37.1

Use upstream git instead of pristin-tar.

Also use "%__make" and "%make_install" rpm macros.

Bug-Tizen: TC-1807
Change-Id: If52b5604533d6e03826eae8ce35c01184cf208ab
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
9 years agoPackaging cleanups
Patrick McCarty [Wed, 4 Sep 2013 17:59:11 +0000 (10:59 -0700)]
Packaging cleanups

- Fix whitespace
- Package license for libcurl
- Fix RPM group tags
- Add the upstream URL

Change-Id: I101c1d0272da282dced66d439058d84ead13bd39

9 years agoUpdate to 7.32.0
Patrick McCarty [Wed, 4 Sep 2013 17:45:38 +0000 (10:45 -0700)]
Update to 7.32.0

This update addresses the following CVEs:

 - CVE-2011-2192
 - CVE-2012-0036
 - CVE-2013-1944

Change-Id: I58ed3c3561cbb670fb49ffc43a5e6b3be7c1a829

9 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 20:18:53 +0000 (23:18 +0300)]
resetting manifest requested domain to floor

Change-Id: Ib4fd617379bc46744c4a951b8232fabe30e7e4c1

9 years agoAdd baselibs
Anas Nashif [Sat, 16 Feb 2013 06:37:24 +0000 (22:37 -0800)]
Add baselibs

Change-Id: I147e3da210e065be06ee455dd91c6d7548ed7492

9 years agoadd packaging
Anas Nashif [Tue, 30 Oct 2012 22:51:57 +0000 (15:51 -0700)]
add packaging

Change-Id: Ia2b58e13b0000ced9c1e8c4895f0cdffb27cc877

9 years agoRELEASE-NOTES: synced with 4cb2521595 upstream/7.37.1
Daniel Stenberg [Wed, 16 Jul 2014 14:29:02 +0000 (16:29 +0200)]
RELEASE-NOTES: synced with 4cb2521595

9 years agotest506: verify aa6884845168
Daniel Stenberg [Tue, 15 Jul 2014 22:09:58 +0000 (00:09 +0200)]
test506: verify aa6884845168

After the fixed cookie lock deadlock, this test now passes and it
detects double-locking and double-unlocking of mutexes.

9 years agocookie: avoid mutex deadlock
Yousuke Kimoto [Mon, 14 Jul 2014 18:38:18 +0000 (20:38 +0200)]
cookie: avoid mutex deadlock

... by removing the extra mutex locks around th call to
Curl_flush_cookies() which takes care of the locking itself already.

Bug: http://curl.haxx.se/mail/lib-2014-02/0184.html

9 years agognutls: fix compiler warning
Daniel Stenberg [Tue, 15 Jul 2014 19:28:10 +0000 (21:28 +0200)]
gnutls: fix compiler warning

conversion to 'int' from 'long int' may alter its value

9 years agotest320: strip off the actual negotiated cipher width
Dan Fandrich [Mon, 14 Jul 2014 23:01:39 +0000 (01:01 +0200)]
test320: strip off the actual negotiated cipher width

It's irrelevant to the test, and will change depending on which SSL
library is being used by libcurl.

9 years agognutls: detect lack of SRP support in GnuTLS at run-time and try without
Dan Fandrich [Mon, 14 Jul 2014 20:27:03 +0000 (22:27 +0200)]
gnutls: detect lack of SRP support in GnuTLS at run-time and try without

Reported-by: David Woodhouse
9 years agoconfigure: respect host tool prefix for krb5-config
Michał Górny [Sun, 15 Jun 2014 10:42:30 +0000 (12:42 +0200)]
configure: respect host tool prefix for krb5-config

Use ${host_alias}-krb5-config if available. This improves cross-
compilation support and fixes multilib on Gentoo (at least).

9 years agognutls: handle IP address in cert name check
David Woodhouse [Mon, 14 Jul 2014 18:04:55 +0000 (20:04 +0200)]
gnutls: handle IP address in cert name check

Before GnuTLS 3.3.6, the gnutls_x509_crt_check_hostname() function
didn't actually check IP addresses in SubjectAltName, even though it was
explicitly documented as doing so. So do it ourselves...

9 years agobuild: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r
Dan Fandrich [Mon, 14 Jul 2014 08:40:33 +0000 (10:40 +0200)]
build: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r

9 years agoRELEASE-NOTES: next one is called 7.37.1
Daniel Stenberg [Mon, 14 Jul 2014 17:30:50 +0000 (19:30 +0200)]
RELEASE-NOTES: next one is called 7.37.1

9 years agognutls: improved error message if setting cipher list fails
Dan Fandrich [Sat, 12 Jul 2014 23:30:52 +0000 (01:30 +0200)]
gnutls: improved error message if setting cipher list fails

Reported-by: David Woodhouse
9 years agonetrc: fixed thread safety problem by using getpwuid_r if available
Dan Fandrich [Sat, 12 Jul 2014 22:18:40 +0000 (00:18 +0200)]
netrc: fixed thread safety problem by using getpwuid_r if available

The old way using getpwuid could cause problems in programs that enable
reading from netrc files simultaneously in multiple threads.

Reported-by: David Woodhouse
9 years agoRELEASE-NOTES: add the reporter of the previous bug fix
Dan Fandrich [Sat, 12 Jul 2014 21:39:22 +0000 (23:39 +0200)]
RELEASE-NOTES: add the reporter of the previous bug fix

9 years agonetrc: treat failure to find home dir same as missing netrc file
Dan Fandrich [Sat, 12 Jul 2014 18:19:34 +0000 (20:19 +0200)]
netrc: treat failure to find home dir same as missing netrc file

This previously caused a fatal error (with a confusing error code, at
that).

Reported by: Glen A Johnson Jr.

9 years agoRELEASE-NOTES: Synced with aaaf9e50ec
Steve Holme [Sat, 12 Jul 2014 14:23:39 +0000 (15:23 +0100)]
RELEASE-NOTES: Synced with aaaf9e50ec

9 years agontlm_wb: Fixed buffer size not being large enough for NTLMv2 sessions
Steve Holme [Sat, 12 Jul 2014 13:56:47 +0000 (14:56 +0100)]
ntlm_wb: Fixed buffer size not being large enough for NTLMv2 sessions

Bug: http://curl.haxx.se/mail/lib-2014-07/0103.html
Reported-by: David Woodhouse
9 years agobuild: Fixed overridden compiler PDB settings in VC7 to VC12
Steve Holme [Sat, 28 Jun 2014 12:02:03 +0000 (13:02 +0100)]
build: Fixed overridden compiler PDB settings in VC7 to VC12

The curl tool project files for VC7 to VC12 would override the default
setting with the output filename being the same as the linker PDB file.
As such the compiler file would be overwritten with the linker file
for all debug builds.

To avoid this overwrite and for consistency with the libcurl project
files, removed the setting to force the default filename to be used.

9 years agotests: added globbing keyword to URL globbing tests
Dan Fandrich [Fri, 11 Jul 2014 23:49:35 +0000 (01:49 +0200)]
tests: added globbing keyword to URL globbing tests

9 years agoFixed some "statement not reached" warnings
Dan Fandrich [Fri, 11 Jul 2014 23:39:56 +0000 (01:39 +0200)]
Fixed some "statement not reached" warnings

9 years agognutls: fixed a couple of uninitialized variable references
Dan Fandrich [Fri, 11 Jul 2014 23:31:12 +0000 (01:31 +0200)]
gnutls: fixed a couple of uninitialized variable references

9 years agognutls: fixed compilation against versions < 2.12.0
Dan Fandrich [Fri, 11 Jul 2014 22:33:16 +0000 (00:33 +0200)]
gnutls: fixed compilation against versions < 2.12.0

The AES-GCM ciphers were added to GnuTLS as late as ver. 3.0.1 but
the code path in which they're referenced here is only ever used for
somewhat older GnuTLS versions. This caused undeclared identifier errors
when compiling against those.

9 years agognutls: explicitly added SRP to the priority string
Dan Fandrich [Fri, 11 Jul 2014 21:55:53 +0000 (23:55 +0200)]
gnutls: explicitly added SRP to the priority string

This seems to have become necessary for SRP support to work starting
with GnuTLS ver. 2.99.0. Since support for SRP was added to GnuTLS
before the function that takes this priority string, there should be no
issue with backward compatibility.

9 years agotests: adjust for capitalization differences in newer gnutls-serv
Dan Fandrich [Fri, 11 Jul 2014 21:43:13 +0000 (23:43 +0200)]
tests: adjust for capitalization differences in newer gnutls-serv

9 years agotest320/1/2/4: fix the port number substitution variables
Dan Fandrich [Fri, 11 Jul 2014 21:40:01 +0000 (23:40 +0200)]
test320/1/2/4: fix the port number substitution variables

These tests have been broken since commit 1958fe57 in Oct. 2011

9 years agotests: document more test identifiers and variables
Dan Fandrich [Fri, 11 Jul 2014 21:33:55 +0000 (23:33 +0200)]
tests: document more test identifiers and variables

9 years agognutls: ignore invalid certificate dates with VERIFYPEER disabled
Dan Fandrich [Fri, 11 Jul 2014 21:21:31 +0000 (23:21 +0200)]
gnutls: ignore invalid certificate dates with VERIFYPEER disabled

This makes the behaviour consistent with what happens if a date can
be extracted from the certificate but is expired.

9 years agoCURLOPT_UPLOAD: Corrected argument type
Steve Holme [Thu, 10 Jul 2014 21:30:30 +0000 (22:30 +0100)]
CURLOPT_UPLOAD: Corrected argument type

9 years agoFAQ: expand the thread-safe section
Daniel Stenberg [Thu, 10 Jul 2014 03:06:34 +0000 (22:06 -0500)]
FAQ: expand the thread-safe section

... with a mention of *NOSIGNAL, based on talk in bug #1386

9 years agourl.c: Fixed memory leak on OOM
Dan Fandrich [Mon, 7 Jul 2014 21:12:22 +0000 (23:12 +0200)]
url.c: Fixed memory leak on OOM

This showed itself on some systems with torture failures
in tests 1060 and 1061

9 years agoUpdate instances of some obsolete CURLOPTs to their new names
Dan Fandrich [Sat, 5 Jul 2014 14:59:12 +0000 (16:59 +0200)]
Update instances of some obsolete CURLOPTs to their new names

9 years agocompiler warnings: potentially uninitialized variables
Marcel Raad [Fri, 4 Jul 2014 16:26:57 +0000 (18:26 +0200)]
compiler warnings: potentially uninitialized variables

... pointed out by MSVC2013

Bug: http://curl.haxx.se/bug/view.cgi?id=1391

9 years agonss: make the list of CRL items global
Kamil Dudka [Fri, 4 Jul 2014 10:41:53 +0000 (12:41 +0200)]
nss: make the list of CRL items global

Otherwise NSS could use an already freed item for another connection.

9 years agonss: fix a memory leak when CURLOPT_CRLFILE is used
Kamil Dudka [Thu, 3 Jul 2014 22:39:23 +0000 (00:39 +0200)]
nss: fix a memory leak when CURLOPT_CRLFILE is used

9 years agonss: make crl_der allocated on heap
Kamil Dudka [Thu, 3 Jul 2014 22:36:21 +0000 (00:36 +0200)]
nss: make crl_der allocated on heap

... and spell it as crl_der instead of crlDER

9 years agonss: let nss_{cache,load}_crl return CURLcode
Kamil Dudka [Thu, 3 Jul 2014 21:53:44 +0000 (23:53 +0200)]
nss: let nss_{cache,load}_crl return CURLcode

9 years agotool: oops, forgot to include <plarenas.h>
Kamil Dudka [Thu, 3 Jul 2014 18:19:35 +0000 (20:19 +0200)]
tool: oops, forgot to include <plarenas.h>

... that contains the declaration of PL_ArenaFinish()

9 years agotool: call PL_ArenaFinish() on exit if NSPR is used
Kamil Dudka [Thu, 3 Jul 2014 18:19:35 +0000 (20:19 +0200)]
tool: call PL_ArenaFinish() on exit if NSPR is used

This prevents valgrind from reporting still reachable memory allocated
by NSPR arenas (mainly the freelist).

Reported-by: Hubert Kario
9 years agoexample: use correct type (long) for CURLOPT_FOLLOWLOCATION
Dimitrios Siganos [Wed, 2 Jul 2014 09:49:08 +0000 (11:49 +0200)]
example: use correct type (long) for CURLOPT_FOLLOWLOCATION

9 years agoDocument type of argument for CURLOPT_FOLLOWLOCATION.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:40 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_FOLLOWLOCATION.

9 years agoDocument type of argument for CURLOPT_ERRORBUFFER.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:39 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_ERRORBUFFER.

9 years agoDocument type of argument for CURLOPT_COPYPOSTFIELDS.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:38 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_COPYPOSTFIELDS.

9 years agoDocument type of argument for CURLOPT_ADDRESS_SCOPE.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:37 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_ADDRESS_SCOPE.

9 years agocurl.1: minor language fix
Daniel Stenberg [Thu, 3 Jul 2014 20:36:41 +0000 (22:36 +0200)]
curl.1: minor language fix

Bug: http://curl.haxx.se/mail/archive-2014-07/0006.html

9 years agoprogress callback: skip last callback update on errors
Ray Satiro [Mon, 9 Jun 2014 21:57:14 +0000 (23:57 +0200)]
progress callback: skip last callback update on errors

When an error has been detected, skip the final forced call to the
progress callback by making sure to pass the current return code
variable in the Curl_done() call in the CURLM_STATE_DONE state.

This avoids the "extra" callback that could occur even if you returned
error from the progress callback.

Bug: http://curl.haxx.se/mail/lib-2014-06/0062.html
Reported by: Jonathan Cardoso Machado

9 years agoopts: fixed some CURLOPT references so they get turned into links
Dan Fandrich [Wed, 2 Jul 2014 19:40:39 +0000 (21:40 +0200)]
opts: fixed some CURLOPT references so they get turned into links

9 years agotool: call PR_Cleanup() on exit if NSPR is used
Kamil Dudka [Wed, 2 Jul 2014 14:34:48 +0000 (16:34 +0200)]
tool: call PR_Cleanup() on exit if NSPR is used

This prevents valgrind from reporting possibly lost memory that NSPR
uses for file descriptor cache and other globally allocated internal
data structures.

9 years agonss: make the fallback to SSLv3 work again
Kamil Dudka [Wed, 2 Jul 2014 15:49:37 +0000 (17:49 +0200)]
nss: make the fallback to SSLv3 work again

This feature was unintentionally disabled by commit ff92fcfb.

9 years agonss: do not abort on connection failure
Kamil Dudka [Wed, 2 Jul 2014 15:37:43 +0000 (17:37 +0200)]
nss: do not abort on connection failure

... due to calling SSL_VersionRangeGet() with NULL file descriptor

reported-by: upstream tests 305 and 404

9 years agoopts: Document the socket callback function parameters
Dan Fandrich [Tue, 1 Jul 2014 05:59:28 +0000 (07:59 +0200)]
opts: Document the socket callback function parameters

9 years agoopts: Fixed some typos
Steve Holme [Sat, 28 Jun 2014 11:40:06 +0000 (12:40 +0100)]
opts: Fixed some typos

9 years agocurl_easy_setopt.3: fixed the error code for an unsupported option
Dan Fandrich [Wed, 25 Jun 2014 20:30:36 +0000 (22:30 +0200)]
curl_easy_setopt.3: fixed the error code for an unsupported option

9 years agoopts: added some DEFAULT and RETURN VALUE sections
Dan Fandrich [Mon, 23 Jun 2014 22:00:34 +0000 (00:00 +0200)]
opts: added some DEFAULT and RETURN VALUE sections

9 years agolibcurl docs: man page edits
Daniel Stenberg [Sat, 21 Jun 2014 21:52:06 +0000 (23:52 +0200)]
libcurl docs: man page edits

mainly to improve how the web versions render