diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-10 15:28:24 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-10 15:28:24 +0000 |
commit | a54d28c184407b2c3f39297c5f4e18e1169c3b83 (patch) | |
tree | 7962a3afe7add6d3b3b90f7f155e907c473d155c | |
parent | 43e359e19a8aaa2c27bf3268d21ccffa50838665 (diff) | |
download | gnutls-a54d28c184407b2c3f39297c5f4e18e1169c3b83.tar.gz |
Corrected a bug in gnutls_dh_params_export_pkcs3() which made it reportgnutls_1_0_1
a wrong size for the output data.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | lib/gnutls_dh_primes.c | 5 |
3 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -Version 1.0.1 +Version 1.0.1 (10/12/2003) - Some minor fixes in the makefiles. They now include CFLAGS from libgcrypt or opencdk if installed in a non standard directory. - Fixed the SRP detection test in gnutls-cli-debug. diff --git a/configure.in b/configure.in index 21230de5c7..e894a0dd1e 100644 --- a/configure.in +++ b/configure.in @@ -28,7 +28,7 @@ AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE dnl This is the library version -GNUTLS_MOST_RECENT_INTERFACE=10 +GNUTLS_MOST_RECENT_INTERFACE=11 GNUTLS_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER=$GNUTLS_MICRO_VERSION GNUTLS_OLDEST_INTERFACE=10 diff --git a/lib/gnutls_dh_primes.c b/lib/gnutls_dh_primes.c index d3dbde8b5c..6bbd179b8a 100644 --- a/lib/gnutls_dh_primes.c +++ b/lib/gnutls_dh_primes.c @@ -472,7 +472,8 @@ int gnutls_dh_params_export_pkcs3( gnutls_dh_params params, return GNUTLS_E_MEMORY_ERROR; } - if ((result=asn1_der_coding( c2, "", tmp, &len, NULL)) != ASN1_SUCCESS) { + if ((result=asn1_der_coding( c2, "", tmp, &len, NULL)) != ASN1_SUCCESS) + { gnutls_assert(); gnutls_free( tmp); asn1_delete_structure(&c2); @@ -500,7 +501,7 @@ int gnutls_dh_params_export_pkcs3( gnutls_dh_params params, if ((uint)result + 1 > *params_data_size) { gnutls_assert(); gnutls_free(out); - *params_data_size = result; + *params_data_size = result + 1; return GNUTLS_E_SHORT_MEMORY_BUFFER; } |