cyassl: fix compiler warnings
This commit is contained in:
Родитель
9e60d8fd9e
Коммит
d6b9f76943
|
@ -77,7 +77,6 @@ static CURLcode
|
|||
cyassl_connect_step1(struct connectdata *conn,
|
||||
int sockindex)
|
||||
{
|
||||
int ret = -1;
|
||||
struct SessionHandle *data = conn->data;
|
||||
struct ssl_connect_data* conssl = &conn->ssl[sockindex];
|
||||
SSL_METHOD* req_method = NULL;
|
||||
|
@ -224,7 +223,6 @@ cyassl_connect_step2(struct connectdata *conn,
|
|||
int ret = -1;
|
||||
struct SessionHandle *data = conn->data;
|
||||
struct ssl_connect_data* conssl = &conn->ssl[sockindex];
|
||||
curl_socket_t sockfd = conn->sock[sockindex];
|
||||
|
||||
infof(data, "CyaSSL: Connecting to %s:%d\n",
|
||||
conn->host.name, conn->remote_port);
|
||||
|
@ -382,6 +380,7 @@ static ssize_t cyassl_recv(struct connectdata *conn,
|
|||
|
||||
void Curl_cyassl_session_free(void *ptr)
|
||||
{
|
||||
(void)ptr;
|
||||
/* CyaSSL reuses sessions on own, no free */
|
||||
}
|
||||
|
||||
|
|
|
@ -38,6 +38,10 @@ void Curl_cyassl_close(struct connectdata *conn, int sockindex);
|
|||
void Curl_cyassl_session_free(void *ptr);
|
||||
size_t Curl_cyassl_version(char *buffer, size_t size);
|
||||
int Curl_cyassl_shutdown(struct connectdata *conn, int sockindex);
|
||||
int Curl_cyassl_init(void);
|
||||
CURLcode Curl_cyassl_connect_nonblocking(struct connectdata *conn,
|
||||
int sockindex,
|
||||
bool *done);
|
||||
|
||||
/* API setup for CyaSSL */
|
||||
#define curlssl_init Curl_cyassl_init
|
||||
|
|
Загрузка…
Ссылка в новой задаче