Home | History | Annotate | Download | only in libvncclient

Lines Matching refs:ssl

25 #include <openssl/ssl.h>
117 ssl_errno (SSL *ssl, int ret)
119 switch (SSL_get_error (ssl, ret)) {
181 SSL *ssl;
186 ssl = X509_STORE_CTX_get_ex_data (ctx, SSL_get_ex_data_X509_STORE_CTX_idx ());
188 client = SSL_CTX_get_app_data (ssl->ctx);
214 static int sock_read_ready(SSL *ssl, uint32_t ms)
222 FD_SET(SSL_get_fd(ssl), &fds);
227 r = select (SSL_get_fd(ssl) + 1, &fds, NULL, NULL, &tv);
232 static int wait_for_data(SSL *ssl, int ret, int timeout)
237 err = SSL_get_error(ssl, ret);
243 ret = sock_read_ready(ssl, timeout*1000);
260 static SSL *
264 SSL *ssl = NULL;
270 ssl = SSL_new (ssl_ctx);
273 SSL_set_cipher_list(ssl, "ALL");
275 SSL_set_fd (ssl, sockfd);
280 n = SSL_connect(ssl);
284 if (wait_for_data(ssl, n, 1) != 1)
287 if (ssl->ctx)
288 SSL_CTX_free (ssl->ctx);
289 SSL_free(ssl);
290 SSL_shutdown (ssl);
297 return ssl;