diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-19 12:07:51 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-19 12:07:51 +0100 |
commit | 294f4e9fc882f5ef541a4e7fc169b23f9db50646 (patch) | |
tree | 90675dbf513d4c4c94b793362f066c79488a00ff /lib/gnutls_alert.c | |
parent | 0825640cc8580981db4f0be999b4f79c07f89168 (diff) | |
download | gnutls-294f4e9fc882f5ef541a4e7fc169b23f9db50646.tar.gz |
Return a special error code if DSA keys with over 1024 are being used with TLS 1.x, x<2.
Diffstat (limited to 'lib/gnutls_alert.c')
-rw-r--r-- | lib/gnutls_alert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gnutls_alert.c b/lib/gnutls_alert.c index b173057daf..0663669d59 100644 --- a/lib/gnutls_alert.c +++ b/lib/gnutls_alert.c @@ -206,6 +206,7 @@ gnutls_error_to_alert (int err, int *level) case GNUTLS_E_NO_COMPRESSION_ALGORITHMS: case GNUTLS_E_UNSUPPORTED_SIGNATURE_ALGORITHM: case GNUTLS_E_SAFE_RENEGOTIATION_FAILED: + case GNUTLS_E_INCOMPAT_DSA_KEY_WITH_TLS_PROTOCOL: ret = GNUTLS_A_HANDSHAKE_FAILURE; _level = GNUTLS_AL_FATAL; break; |