diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-03-08 14:09:20 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-03-08 14:09:20 +0100 |
commit | d6b9f76943cf3f2321ca8798dd4d8b863a756939 (patch) | |
tree | 093e4faf1f4a631b8c77ef0d693ff349b3b7f228 | |
parent | 9e60d8fd9e9308cd2c79a13710f30a8481f5f1e6 (diff) |
cyassl: fix compiler warnings
-rw-r--r-- | lib/cyassl.c | 3 | ||||
-rw-r--r-- | lib/cyassl.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/cyassl.c b/lib/cyassl.c index 74904f2df..3e15b1879 100644 --- a/lib/cyassl.c +++ b/lib/cyassl.c @@ -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 */ } diff --git a/lib/cyassl.h b/lib/cyassl.h index 63fd27a17..6dbf70f4d 100644 --- a/lib/cyassl.h +++ b/lib/cyassl.h @@ -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 |