Hi Matthijs,

On Sun, May 15, 2005 at 12:44:44PM +0200, Matthijs Mohlmann wrote:
> Attached a patch from cvs which fixes the problem.

What does the second part of this patch have to do with the first?

-- 
Steve Langasek
postmodern programmer

> ===================================================================
> RCS file: /cvs/gnutls/gnutls/lib/gnutls_cipher.c,v
> retrieving revision 2.70.2.4
> retrieving revision 2.70.2.5
> diff -u -r2.70.2.4 -r2.70.2.5
> --- gnutls/lib/gnutls_cipher.c        2004/02/27 17:51:58     2.70.2.4
> +++ gnutls/lib/gnutls_cipher.c        2005/04/27 17:43:56     2.70.2.5
> @@ -448,7 +448,7 @@
>               
>               /* Check the pading bytes (TLS 1.x)
>                */
> -             if ( ver >= GNUTLS_TLS1)
> +             if ( ver >= GNUTLS_TLS1 && pad_failed==0)
>               for (i=2;i<pad;i++) {
>                       if (ciphertext.data[ciphertext.size-i] != 
> ciphertext.data[ciphertext.size - 1]) 
>                               pad_failed = GNUTLS_E_DECRYPTION_FAILED;
> ===================================================================
> RCS file: /cvs/gnutls/gnutls/lib/gnutls_mpi.h,v
> retrieving revision 2.18.4.5
> retrieving revision 2.18.4.6
> diff -u -r2.18.4.5 -r2.18.4.6
> --- gnutls/lib/gnutls_mpi.h   2004/08/18 12:07:21     2.18.4.5
> +++ gnutls/lib/gnutls_mpi.h   2005/04/27 17:43:56     2.18.4.6
> @@ -26,6 +26,7 @@
>  #define _gnutls_mpi_mul gcry_mpi_mul
>  #define _gnutls_mpi_add gcry_mpi_add
>  #define _gnutls_mpi_add_ui gcry_mpi_add_ui
> +#define _gnutls_mpi_sub_ui gcry_mpi_sub_ui
>  #define _gnutls_mpi_mul_ui gcry_mpi_mul_ui
>  #define _gnutls_prime_check gcry_prime_check
>  #define _gnutls_mpi_div gcry_mpi_div

Attachment: signature.asc
Description: Digital signature

Reply via email to