summaryrefslogtreecommitdiff
path: root/lib/gnutls_alert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-03 16:11:43 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-03 16:11:43 +0000
commitdab47e0ecb7c96e6737a52e06c7b56fbe93d1237 (patch)
tree6d78dc998972f5e6ed53d36eceeb70ad358f37f5 /lib/gnutls_alert.c
parent198cf86a48fd021c861f232cd6e7abfa8b68b911 (diff)
downloadgnutls-dab47e0ecb7c96e6737a52e06c7b56fbe93d1237.tar.gz
* gnutls_dh_params_generate() and gnutls_rsa_params_generate() now use
gnutls_malloc() to allocate the output parameters. * Added gnutls_pkcs3_extract_dh_params() which extracts parameters from PKCS#3 encoded structures. This was in order to read parameters generated using the openssl dhparam tool. * Several changes in the temporary (DH/RSA) parameter codebase. No DH parameters are now included in the library. Also a credentials structure can now hold only one temporary parameter.
Diffstat (limited to 'lib/gnutls_alert.c')
-rw-r--r--lib/gnutls_alert.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gnutls_alert.c b/lib/gnutls_alert.c
index ed8fb0b535..8a8b7924e4 100644
--- a/lib/gnutls_alert.c
+++ b/lib/gnutls_alert.c
@@ -52,6 +52,7 @@ static const gnutls_alert_entry sup_alerts[] = {
{ GNUTLS_A_PROTOCOL_VERSION, "Error in protocol version" },
{ GNUTLS_A_INSUFFICIENT_SECURITY,"Insufficient security" },
{ GNUTLS_A_USER_CANCELED, "User canceled" },
+ { GNUTLS_A_INTERNAL_ERROR, "Internal error" },
{ GNUTLS_A_NO_RENEGOTIATION, "No renegotiation is allowed" },
{ GNUTLS_A_CERTIFICATE_UNOBTAINABLE, "Could not retrieve the specified certificate" },
{ GNUTLS_A_UNSUPPORTED_EXTENSION, "An unsupported extension was sent" },
@@ -203,6 +204,8 @@ int _level = -1;
_level = GNUTLS_AL_FATAL;
break;
case GNUTLS_E_INTERNAL_ERROR:
+ case GNUTLS_E_NO_TEMPORARY_DH_PARAMS:
+ case GNUTLS_E_NO_TEMPORARY_RSA_PARAMS:
ret = GNUTLS_A_INTERNAL_ERROR;
_level = GNUTLS_AL_FATAL;
break;