summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-11-30 15:00:23 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-11-30 15:00:23 +0000
commiteb35719c3e84cf138629681530fb0de58c27e0a5 (patch)
tree2526fc7706c08bc7a90525268155915d8e352cf4 /lib
parentd92b77866b3bcb9eb1544d86e236a35d295ffe1f (diff)
downloadgnutls-eb35719c3e84cf138629681530fb0de58c27e0a5.tar.gz
Some fixes in the certificate authenticated SRP ciphersuites.
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_cipher.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index 4ac9540eec..3c7eabdd70 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -408,7 +408,6 @@ int _gnutls_ciphertext2compressed(gnutls_session session,
if ( ver == GNUTLS_TLS1)
for (i=2;i<pad;i++) {
if (ciphertext.data[ciphertext.size-i] != ciphertext.data[ciphertext.size - 1]) {
- gnutls_assert();
pad_failed = GNUTLS_E_DECRYPTION_FAILED;
}
}
@@ -419,15 +418,14 @@ int _gnutls_ciphertext2compressed(gnutls_session session,
return GNUTLS_E_INTERNAL_ERROR;
}
-
/* copy the decrypted stuff to compress_data.
*/
if (compress_size < length) {
gnutls_assert();
- return GNUTLS_E_MEMORY_ERROR;
+ return GNUTLS_E_INTERNAL_ERROR;
}
- memcpy( compress_data, ciphertext.data, length);
+ memcpy( compress_data, ciphertext.data, length);
c_length = _gnutls_conv_uint16((uint16) length);