|  |  |  | GnomeVFS - Filesystem Abstraction library |  | 
|---|
gnome-vfs-ssl —
gboolean gnome_vfs_ssl_enabled (void); GnomeVFSResult gnome_vfs_ssl_create (GnomeVFSSSL **handle_return, const char *host, unsigned int port); GnomeVFSResult gnome_vfs_ssl_create_from_fd (GnomeVFSSSL **handle_return, gint fd); GnomeVFSResult gnome_vfs_ssl_read (GnomeVFSSSL *ssl, gpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_read); GnomeVFSResult gnome_vfs_ssl_write (GnomeVFSSSL *ssl, gconstpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_written); void gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl); GnomeVFSSocket* gnome_vfs_ssl_to_socket (GnomeVFSSSL *ssl);
gboolean gnome_vfs_ssl_enabled (void);
Checks whether GnomeVFS was compiled with SSL support.
| Returns : | TRUE if GnomeVFS was compiled with SSL support, otherwise FALSE. | 
GnomeVFSResult gnome_vfs_ssl_create (GnomeVFSSSL **handle_return, const char *host, unsigned int port);
Creates an SSL socket connection at handle_return to host using port port.
| handle_return : | pointer to a GnmoeVFSSSL struct, which will contain an allocated GnomeVFSSSL object on return. | 
| host : | string indicating the host to establish an SSL connection with | 
| port : | the port number to connect to | 
| Returns : | GnomeVFSResult indicating the success of the operation | 
GnomeVFSResult gnome_vfs_ssl_create_from_fd (GnomeVFSSSL **handle_return, gint fd);
Try to establish an SSL connection over the file descriptor fd.
| handle_return : | pointer to a GnmoeVFSSSL struct, which will contain an allocated GnomeVFSSSL object on return. | 
| fd : | file descriptior to try and establish an SSL connection over | 
| Returns : | a GnomeVFSResult indicating the success of the operation | 
GnomeVFSResult gnome_vfs_ssl_read (GnomeVFSSSL *ssl, gpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_read);
Read bytes bytes of data from the SSL socket ssl into buffer.
| ssl : | SSL socket to read data from | 
| buffer : | allocated buffer of at least bytes bytes to be read into | 
| bytes : | number of bytes to read from ssl into buffer | 
| bytes_read : | pointer to a GnomeVFSFileSize, will contain the number of bytes actually read from the socket on return. | 
| Returns : | GnomeVFSResult indicating the success of the operation | 
GnomeVFSResult gnome_vfs_ssl_write (GnomeVFSSSL *ssl, gconstpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_written);
Write bytes bytes of data from buffer to ssl.
| ssl : | SSL socket to write data to | 
| buffer : | data to write to the socket | 
| bytes : | number of bytes from buffer to write to ssl | 
| bytes_written : | pointer to a GnomeVFSFileSize, will contain the number of bytes actually written to the socket on return. | 
| Returns : | GnomeVFSResult indicating the success of the operation | 
void gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl);
Free resources used by ssl and close the connection.
| ssl : | SSL socket to be closed and destroyed | 
| << gnome-vfs-module-callback-module-api | GnomeVFSContext >> |