aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/lib/share.c
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2023-12-22 17:10:22 +0100
committerGitHub <noreply@github.com>2023-12-22 17:10:22 +0100
commit148f920350c60c0ca2d89b637a5aea9093eee450 (patch)
tree6314b1433dac833398c333731e83f0ad77e81a0b /contrib/libs/curl/lib/share.c
parent7116d46ae7c0259b5f9d489de263f8701e432b1c (diff)
downloadydb-148f920350c60c0ca2d89b637a5aea9093eee450.tar.gz
Library import 2 (#639)
Diffstat (limited to 'contrib/libs/curl/lib/share.c')
-rw-r--r--contrib/libs/curl/lib/share.c34
1 files changed, 3 insertions, 31 deletions
diff --git a/contrib/libs/curl/lib/share.c b/contrib/libs/curl/lib/share.c
index c0a8d806f3..1a083e72a0 100644
--- a/contrib/libs/curl/lib/share.c
+++ b/contrib/libs/curl/lib/share.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -29,11 +29,9 @@
#include "share.h"
#include "psl.h"
#include "vtls/vtls.h"
-#include "hsts.h"
-
-/* The last 3 #include files should be in this order */
-#include "curl_printf.h"
#include "curl_memory.h"
+
+/* The last #include file should be: */
#include "memdebug.h"
struct Curl_share *
@@ -91,18 +89,6 @@ curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...)
#endif
break;
- case CURL_LOCK_DATA_HSTS:
-#ifndef CURL_DISABLE_HSTS
- if(!share->hsts) {
- share->hsts = Curl_hsts_init();
- if(!share->hsts)
- res = CURLSHE_NOMEM;
- }
-#else /* CURL_DISABLE_HSTS */
- res = CURLSHE_NOT_BUILT_IN;
-#endif
- break;
-
case CURL_LOCK_DATA_SSL_SESSION:
#ifdef USE_SSL
if(!share->sslsession) {
@@ -155,16 +141,6 @@ curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...)
#endif
break;
- case CURL_LOCK_DATA_HSTS:
-#ifndef CURL_DISABLE_HSTS
- if(share->hsts) {
- Curl_hsts_cleanup(&share->hsts);
- }
-#else /* CURL_DISABLE_HSTS */
- res = CURLSHE_NOT_BUILT_IN;
-#endif
- break;
-
case CURL_LOCK_DATA_SSL_SESSION:
#ifdef USE_SSL
Curl_safefree(share->sslsession);
@@ -231,10 +207,6 @@ curl_share_cleanup(struct Curl_share *share)
Curl_cookie_cleanup(share->cookies);
#endif
-#ifndef CURL_DISABLE_HSTS
- Curl_hsts_cleanup(&share->hsts);
-#endif
-
#ifdef USE_SSL
if(share->sslsession) {
size_t i;