diff options
Diffstat (limited to 'lib')
-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 |