libguac  1.0.0
Data Structures | Functions
socket-ssl.h File Reference

Provides an SSL/TLS implementation of guac_socket. More...

Go to the source code of this file.

Data Structures

struct  guac_socket_ssl_data
 SSL socket-specific data. More...
 

Functions

guac_socketguac_socket_open_secure (SSL_CTX *context, int fd)
 Creates a new guac_socket which will use SSL for all communication. More...
 

Detailed Description

Provides an SSL/TLS implementation of guac_socket.

This header will only be available if libguac was built with SSL support.

Function Documentation

◆ guac_socket_open_secure()

guac_socket* guac_socket_open_secure ( SSL_CTX *  context,
int  fd 
)

Creates a new guac_socket which will use SSL for all communication.

Freeing this guac_socket will automatically close the associated file descriptor.

Parameters
contextThe SSL_CTX structure describing the desired SSL configuration.
fdThe file descriptor to use for the SSL connection underlying the created guac_socket.
Returns
A newly-allocated guac_socket which will transparently use SSL for all communication.