On Sun, 29 Dec 2002 14:17:35 +1000 (EST), Brian Havard wrote:
>I'm seeing random failures (~1% of tests) during encrypt/decrypt tests using
>the current 0.9.7 CVS code. In the failed cases the output clear text is
>correct except that it is short or long by a few bytes. It doesn't seem to
>matter which cipher is used (I tried rc5, des-ede3-cbc & a few others),
>indicating a problem in the higher level EVP code. The openssl program reports
>the error message:
>
>27671:error:0606506D:digital envelope routines:EVP_DecryptFinal:wrong final block
>length:.\crypto\evp\evp_enc.c:423:
Naturally, soon after posting this I found the problem....
Please, can the following patch be applied to 0.9.7 & HEAD?
Index: crypto/bio/bss_file.c
===================================================================
RCS file: /home/cvs/openssl.org/openssl/crypto/bio/bss_file.c,v
retrieving revision 1.14.2.1
diff -u -r1.14.2.1 bss_file.c
--- crypto/bio/bss_file.c 11 Jun 2002 11:41:21 -0000 1.14.2.1
+++ crypto/bio/bss_file.c 29 Dec 2002 05:07:54 -0000
@@ -247,7 +247,7 @@
ret=0;
break;
}
-#if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WINDOWS)
+#if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WINDOWS) ||
+defined(OPENSSL_SYS_OS2)
if (!(num & BIO_FP_TEXT))
strcat(p,"b");
else
--
______________________________________________________________________________
| Brian Havard | "He is not the messiah! |
| [EMAIL PROTECTED] | He's a very naughty boy!" - Life of Brian |
------------------------------------------------------------------------------
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]