diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-07-27 10:52:42 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-08-07 08:20:03 -0500 |
commit | 4536deb5af4cfacbcea65c89efa4307ceb2f7e14 (patch) | |
tree | eb8ebf15386d4257a00ebf1b0719d269ac4b08ed | |
parent | e5f87342e8f5eaf18d0a1c64ed8e1bfcfe48229b (diff) | |
download | glib-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.h | 6 |
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; /** |