[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 79/411: schannel: make it 'struct Curl_schannel*'
From: |
gnunet |
Subject: |
[gnurl] 79/411: schannel: make it 'struct Curl_schannel*' |
Date: |
Wed, 13 Jan 2021 01:18:14 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit add7022666299caa823a15e824677d459650743a
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Wed Sep 2 12:11:01 2020 +0200
schannel: make it 'struct Curl_schannel*'
As internal global names should use captical C.
Closes #5906
---
lib/vtls/schannel.c | 16 ++++++++--------
lib/vtls/schannel.h | 10 +++++-----
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 4707ecfec..91a83a8e9 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -420,7 +420,7 @@ schannel_connect_step1(struct connectdata *conn, int
sockindex)
SCHANNEL_CRED schannel_cred;
PCCERT_CONTEXT client_certs[1] = { NULL };
SECURITY_STATUS sspi_status = SEC_E_OK;
- struct curl_schannel_cred *old_cred = NULL;
+ struct Curl_schannel_cred *old_cred = NULL;
struct in_addr addr;
#ifdef ENABLE_IPV6
struct in6_addr addr6;
@@ -780,8 +780,8 @@ schannel_connect_step1(struct connectdata *conn, int
sockindex)
#endif
/* allocate memory for the re-usable credential handle */
- BACKEND->cred = (struct curl_schannel_cred *)
- calloc(1, sizeof(struct curl_schannel_cred));
+ BACKEND->cred = (struct Curl_schannel_cred *)
+ calloc(1, sizeof(struct Curl_schannel_cred));
if(!BACKEND->cred) {
failf(data, "schannel: unable to allocate memory");
@@ -895,8 +895,8 @@ schannel_connect_step1(struct connectdata *conn, int
sockindex)
ISC_REQ_STREAM;
/* allocate memory for the security context handle */
- BACKEND->ctxt = (struct curl_schannel_ctxt *)
- calloc(1, sizeof(struct curl_schannel_ctxt));
+ BACKEND->ctxt = (struct Curl_schannel_ctxt *)
+ calloc(1, sizeof(struct Curl_schannel_ctxt));
if(!BACKEND->ctxt) {
failf(data, "schannel: unable to allocate memory");
return CURLE_OUT_OF_MEMORY;
@@ -1403,7 +1403,7 @@ schannel_connect_step3(struct connectdata *conn, int
sockindex)
/* save the current session data for possible re-use */
if(SSL_SET_OPTION(primary.sessionid)) {
bool incache;
- struct curl_schannel_cred *old_cred = NULL;
+ struct Curl_schannel_cred *old_cred = NULL;
Curl_ssl_sessionid_lock(conn);
incache = !(Curl_ssl_getsessionid(conn, (void **)&old_cred, NULL,
@@ -1419,7 +1419,7 @@ schannel_connect_step3(struct connectdata *conn, int
sockindex)
}
if(!incache) {
result = Curl_ssl_addsessionid(conn, (void *)BACKEND->cred,
- sizeof(struct curl_schannel_cred),
+ sizeof(struct Curl_schannel_cred),
sockindex);
if(result) {
Curl_ssl_sessionid_unlock(conn);
@@ -2101,7 +2101,7 @@ static void Curl_schannel_close(struct connectdata *conn,
int sockindex)
static void Curl_schannel_session_free(void *ptr)
{
/* this is expected to be called under sessionid lock */
- struct curl_schannel_cred *cred = ptr;
+ struct Curl_schannel_cred *cred = ptr;
cred->refcount--;
if(cred->refcount == 0) {
diff --git a/lib/vtls/schannel.h b/lib/vtls/schannel.h
index ee8d7d47a..f87bae8ff 100644
--- a/lib/vtls/schannel.h
+++ b/lib/vtls/schannel.h
@@ -8,7 +8,7 @@
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2012, Marc Hoersken, <info@marc-hoersken.de>, et al.
- * Copyright (C) 2012 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2012 - 2020, 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
@@ -70,20 +70,20 @@ CURLcode Curl_verify_certificate(struct connectdata *conn,
int sockindex);
#endif
#endif
-struct curl_schannel_cred {
+struct Curl_schannel_cred {
CredHandle cred_handle;
TimeStamp time_stamp;
int refcount;
};
-struct curl_schannel_ctxt {
+struct Curl_schannel_ctxt {
CtxtHandle ctxt_handle;
TimeStamp time_stamp;
};
struct ssl_backend_data {
- struct curl_schannel_cred *cred;
- struct curl_schannel_ctxt *ctxt;
+ struct Curl_schannel_cred *cred;
+ struct Curl_schannel_ctxt *ctxt;
SecPkgContext_StreamSizes stream_sizes;
size_t encdata_length, decdata_length;
size_t encdata_offset, decdata_offset;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 108/411: cmake: make HTTP_ONLY also disable MQTT, (continued)
- [gnurl] 108/411: cmake: make HTTP_ONLY also disable MQTT, gnunet, 2021/01/12
- [gnurl] 100/411: curl:parallel_transfers: make sure retry readds the transfer, gnunet, 2021/01/12
- [gnurl] 95/411: tests: Add tests for new --help, gnunet, 2021/01/12
- [gnurl] 75/411: win32: drop support for WinSock version 1, require version 2, gnunet, 2021/01/12
- [gnurl] 92/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 116/411: libtest: fix build errors, gnunet, 2021/01/12
- [gnurl] 109/411: FAQ: refreshed some very old language, gnunet, 2021/01/12
- [gnurl] 90/411: CMake: remove explicit `CMAKE_ANSI_CFLAGS`, gnunet, 2021/01/12
- [gnurl] 76/411: telnet.c: depend on static requirement of WinSock version 2, gnunet, 2021/01/12
- [gnurl] 97/411: curl: in retry output don't call all problems "transient", gnunet, 2021/01/12
- [gnurl] 79/411: schannel: make it 'struct Curl_schannel*',
gnunet <=
- [gnurl] 88/411: scripts/delta: add diffstat summary, gnunet, 2021/01/12
- [gnurl] 117/411: lib583: fix enum mixup, gnunet, 2021/01/12
- [gnurl] 114/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 120/411: base64: also build for pop3 and imap, gnunet, 2021/01/12
- [gnurl] 89/411: libssh2: pass on the error from ssh_force_knownhost_key_type, gnunet, 2021/01/12
- [gnurl] 119/411: base64: enable in build with SMTP, gnunet, 2021/01/12
- [gnurl] 122/411: http: consolidate nghttp2_session_mem_recv() call paths, gnunet, 2021/01/12
- [gnurl] 115/411: lib: fix -Wassign-enum warnings, gnunet, 2021/01/12
- [gnurl] 118/411: curl_mime_headers.3: fix the example's use of curl_slist_append, gnunet, 2021/01/12
- [gnurl] 113/411: url: use blank credentials when using proxy w/o username and password, gnunet, 2021/01/12