summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--configure.in2
-rw-r--r--lib/gnutls_dh_primes.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index f5e562d492..1408db8676 100644
--- a/NEWS
+++ b/NEWS
@@ -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;
}