1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

schannel: Minor code style policing for casts

This commit is contained in:
Steve Holme 2014-12-25 11:52:32 +00:00
parent ed4c0b53cc
commit 38aaf6c380

View File

@ -127,7 +127,7 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
conn->host.name, conn->remote_port); conn->host.name, conn->remote_port);
/* check for an existing re-usable credential handle */ /* check for an existing re-usable credential handle */
if(!Curl_ssl_getsessionid(conn, (void**)&old_cred, NULL)) { if(!Curl_ssl_getsessionid(conn, (void **)&old_cred, NULL)) {
connssl->cred = old_cred; connssl->cred = old_cred;
infof(data, "schannel: re-using existing credential handle\n"); infof(data, "schannel: re-using existing credential handle\n");
} }
@ -542,16 +542,16 @@ schannel_connect_step3(struct connectdata *conn, int sockindex)
} }
/* save the current session data for possible re-use */ /* save the current session data for possible re-use */
incache = !(Curl_ssl_getsessionid(conn, (void**)&old_cred, NULL)); incache = !(Curl_ssl_getsessionid(conn, (void **)&old_cred, NULL));
if(incache) { if(incache) {
if(old_cred != connssl->cred) { if(old_cred != connssl->cred) {
infof(data, "schannel: old credential handle is stale, removing\n"); infof(data, "schannel: old credential handle is stale, removing\n");
Curl_ssl_delsessionid(conn, (void*)old_cred); Curl_ssl_delsessionid(conn, (void *)old_cred);
incache = FALSE; incache = FALSE;
} }
} }
if(!incache) { if(!incache) {
result = Curl_ssl_addsessionid(conn, (void*)connssl->cred, result = Curl_ssl_addsessionid(conn, (void *)connssl->cred,
sizeof(struct curl_schannel_cred)); sizeof(struct curl_schannel_cred));
if(result) { if(result) {
failf(data, "schannel: failed to store credential handle"); failf(data, "schannel: failed to store credential handle");
@ -713,7 +713,7 @@ schannel_send(struct connectdata *conn, int sockindex,
/* calculate the complete message length and allocate a buffer for it */ /* calculate the complete message length and allocate a buffer for it */
data_len = connssl->stream_sizes.cbHeader + len + data_len = connssl->stream_sizes.cbHeader + len +
connssl->stream_sizes.cbTrailer; connssl->stream_sizes.cbTrailer;
data = (unsigned char*) malloc(data_len); data = (unsigned char *) malloc(data_len);
if(data == NULL) { if(data == NULL) {
*err = CURLE_OUT_OF_MEMORY; *err = CURLE_OUT_OF_MEMORY;
return -1; return -1;