summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-06-06 08:59:33 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-06-06 08:59:33 +0000
commit58054757e96043d904047beb4c0419c837fed7b2 (patch)
tree65e026300278bd81c67f01dba54bcc8aa3049eee /lib
parente963b0af50a51542ea510be7c66a37079c6512bf (diff)
downloadgnutls-58054757e96043d904047beb4c0419c837fed7b2.tar.gz
updated gnutls-cli-debug to print DHE and RSA-EXPORT information if verbose is set. Some other minor fixes.
Diffstat (limited to 'lib')
-rw-r--r--lib/auth_cert.c1
-rw-r--r--lib/auth_cert.h4
-rw-r--r--lib/auth_dh_common.h4
-rw-r--r--lib/gnutls_compress_int.c5
-rw-r--r--lib/gnutls_state.c1
5 files changed, 7 insertions, 8 deletions
diff --git a/lib/auth_cert.c b/lib/auth_cert.c
index 1415e0bec6..9e67b1a791 100644
--- a/lib/auth_cert.c
+++ b/lib/auth_cert.c
@@ -1211,7 +1211,6 @@ int _gnutls_gen_cert_client_cert_vrfy(gnutls_session session,
return ret;
}
} else {
- gnutls_assert();
return 0;
}
diff --git a/lib/auth_cert.h b/lib/auth_cert.h
index cb6bab300e..d024f16e4f 100644
--- a/lib/auth_cert.h
+++ b/lib/auth_cert.h
@@ -97,9 +97,9 @@ typedef struct {
#define gnutls_certificate_credentials certificate_credentials_st*
typedef struct rsa_info_st {
- opaque modulus[64];
+ opaque modulus[65];
size_t modulus_size;
- opaque exponent[64];
+ opaque exponent[65];
size_t exponent_size;
} rsa_info_t;
diff --git a/lib/auth_dh_common.h b/lib/auth_dh_common.h
index 8d82d3c33c..0da5c59f92 100644
--- a/lib/auth_dh_common.h
+++ b/lib/auth_dh_common.h
@@ -4,11 +4,11 @@
typedef struct dh_info_st {
int secret_bits;
- opaque prime[1024];
+ opaque prime[1025];
size_t prime_size;
opaque generator[16];
size_t generator_size;
- opaque public_key[1024];
+ opaque public_key[1025];
size_t public_key_size;
} dh_info_t;
diff --git a/lib/gnutls_compress_int.c b/lib/gnutls_compress_int.c
index 7616e9212a..b0c63ee551 100644
--- a/lib/gnutls_compress_int.c
+++ b/lib/gnutls_compress_int.c
@@ -114,9 +114,8 @@ int err;
break;
#endif
- default:
- gnutls_free(ret);
- return NULL;
+ case GNUTLS_COMP_NULL:
+ break;
}
return ret;
}
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c
index 5abeab791e..7f3d89bf5a 100644
--- a/lib/gnutls_state.c
+++ b/lib/gnutls_state.c
@@ -475,6 +475,7 @@ int _gnutls_rsa_export_set_pubkey( gnutls_session session, mpi_t exp, mpi_t mod)
return GNUTLS_E_INTERNAL_ERROR;
info->rsa_export.modulus_size = sizeof( info->rsa_export.modulus);
+
ret = _gnutls_mpi_print_lz( info->rsa_export.modulus, &info->rsa_export.modulus_size, mod);
if (ret < 0) {
gnutls_assert();