mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
add G_TLS_ERROR_UNAVAILABLE
This commit is contained in:
parent
95cba18349
commit
68a3d6b27f
@ -150,7 +150,7 @@ g_dummy_tls_certificate_initable_init (GInitable *initable,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_MISC,
|
||||
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_UNAVAILABLE,
|
||||
_("TLS support is not available"));
|
||||
return FALSE;
|
||||
}
|
||||
@ -262,7 +262,7 @@ g_dummy_tls_connection_initable_init (GInitable *initable,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_MISC,
|
||||
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_UNAVAILABLE,
|
||||
_("TLS support is not available"));
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1251,6 +1251,7 @@ typedef enum
|
||||
|
||||
/**
|
||||
* GTlsError:
|
||||
* @G_TLS_ERROR_UNAVAILABLE: No TLS provider is available
|
||||
* @G_TLS_ERROR_MISC: Miscellaneous TLS error
|
||||
* @G_TLS_ERROR_BAD_CERTIFICATE: A certificate could not be parsed
|
||||
* @G_TLS_ERROR_NOT_TLS: The TLS handshake failed because the
|
||||
@ -1270,6 +1271,7 @@ typedef enum
|
||||
* Since: 2.28
|
||||
*/
|
||||
typedef enum {
|
||||
G_TLS_ERROR_UNAVAILABLE,
|
||||
G_TLS_ERROR_MISC,
|
||||
G_TLS_ERROR_BAD_CERTIFICATE,
|
||||
G_TLS_ERROR_NOT_TLS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user