summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-07-27 10:52:42 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-08-07 08:20:03 -0500
commit4536deb5af4cfacbcea65c89efa4307ceb2f7e14 (patch)
treeeb8ebf15386d4257a00ebf1b0719d269ac4b08ed
parente5f87342e8f5eaf18d0a1c64ed8e1bfcfe48229b (diff)
downloadglib-mcatanzaro/inappropriate-fallback-error.tar.gz
Add a new GTlsError to indicate protocol downgrade attacksmcatanzaro/inappropriate-fallback-error
G_TLS_ERROR_MISC suffices, but it's nicer to have a new error here.
-rw-r--r--gio/gioenums.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gio/gioenums.h b/gio/gioenums.h
index 99b1c7937..a83fa71f1 100644
--- a/gio/gioenums.h
+++ b/gio/gioenums.h
@@ -1509,6 +1509,9 @@ typedef enum
* @G_TLS_ERROR_EOF: The TLS connection was closed without proper
* notice, which may indicate an attack. See
* g_tls_connection_set_require_close_notify().
+ * @G_TLS_ERROR_INAPPROPRIATE_FALLBACK: The TLS handshake failed
+ * because the client sent the fallback SCSV, indicating a protocol
+ * downgrade attack. Since: 2.60
*
* An error code used with %G_TLS_ERROR in a #GError returned from a
* TLS-related routine.
@@ -1522,7 +1525,8 @@ typedef enum {
G_TLS_ERROR_NOT_TLS,
G_TLS_ERROR_HANDSHAKE,
G_TLS_ERROR_CERTIFICATE_REQUIRED,
- G_TLS_ERROR_EOF
+ G_TLS_ERROR_EOF,
+ G_TLS_ERROR_INAPPROPRIATE_FALLBACK
} GTlsError;
/**