Top | ![]() |
![]() |
![]() |
![]() |
LmSSLResponse | (*LmSSLFunction) () |
LmSSL * | lm_ssl_new () |
gboolean | lm_ssl_is_supported () |
const gchar * | lm_ssl_get_fingerprint () |
void | lm_ssl_use_starttls () |
gboolean | lm_ssl_get_use_starttls () |
gboolean | lm_ssl_get_require_starttls () |
LmSSL * | lm_ssl_ref () |
void | lm_ssl_unref () |
LmSSLResponse (*LmSSLFunction) (LmSSL *ssl
,LmSSLStatus status
,gpointer user_data
);
LmSSL * lm_ssl_new (const gchar *expected_fingerprint
,LmSSLFunction ssl_function
,gpointer user_data
,GDestroyNotify notify
);
Creates a new SSL struct, call lm_connection_set_ssl to use it.
expected_fingerprint |
The expected fingerprint. |
|
ssl_function |
Callback called to inform the user of a problem during setting up the SSL connection and how to proceed. If |
|
user_data |
Data sent with the callback. |
|
notify |
Function to free |
gboolean
lm_ssl_is_supported (void
);
Checks whether Loudmouth supports SSL or not.
const gchar *
lm_ssl_get_fingerprint (LmSSL *ssl
);
Returns the MD5 fingerprint of the remote server's certificate.
void lm_ssl_use_starttls (LmSSL *ssl
,gboolean use_starttls
,gboolean require_starttls
);
Set whether STARTTLS should be used.
ssl |
an LmSSL |
|
use_starttls |
TRUE if STARTTLS should be used. |
|
require_starttls |
TRUE if STARTTLS should be required. |
gboolean
lm_ssl_get_use_starttls (LmSSL *ssl
);
Fetches whether STARTTLS is used.
gboolean
lm_ssl_get_require_starttls (LmSSL *ssl
);
Fetches whether STARTTLS is required.