gnome-vfs-ssl
gnome-vfs-ssl —
Description
Details
gnome_vfs_ssl_enabled ()
gboolean gnome_vfs_ssl_enabled (void);
Returns : | TRUE if GnomeVFS was compiled with SSL support,
otherwise FALSE.
|
gnome_vfs_ssl_create ()
GnomeVFSResult gnome_vfs_ssl_create (GnomeVFSSSL **handle_return,
const char *host,
unsigned int 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
|
gnome_vfs_ssl_create_from_fd ()
GnomeVFSResult gnome_vfs_ssl_create_from_fd (GnomeVFSSSL **handle_return,
gint 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
|
gnome_vfs_ssl_read ()
GnomeVFSResult gnome_vfs_ssl_read (GnomeVFSSSL *ssl,
gpointer buffer,
GnomeVFSFileSize bytes,
GnomeVFSFileSize *bytes_read);
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
|
gnome_vfs_ssl_write ()
GnomeVFSResult gnome_vfs_ssl_write (GnomeVFSSSL *ssl,
gconstpointer buffer,
GnomeVFSFileSize bytes,
GnomeVFSFileSize *bytes_written);
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
|
gnome_vfs_ssl_destroy ()
void gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl);
ssl : | SSL socket to be closed and destroyed
|
gnome_vfs_ssl_to_socket ()
GnomeVFSSocket* gnome_vfs_ssl_to_socket (GnomeVFSSSL *ssl);
ssl : | SSL socket to convert into a standard socket
|
Returns : | a newly allocated GnomeVFSSocket corresponding to ssl.
|