Re: [patch] rsa_locl.h

2006-09-08 Thread Bodo Moeller
On Thu, Sep 07, 2006 at 03:06:47PM +0200, Gisle Vanem wrote:

 crypto/rsa/rsa_locl.h wrongly uses 'size_t' in some arguments. It should 
 match the implementation in crypto/rsa/rsa_sign.c (what happened to this 
 file?). A patch:
 
 --- orig/crypto/rsa/rsa_locl.h   2006-08-28 19:01:02 +0200
 +++ crypto/rsa/rsa_locl.h 2006-08-29 15:30:50 +0200
 @@ -1,4 +1,4 @@
 -extern int int_rsa_verify(int dtype, const unsigned char *m, size_t m_len,
 -   unsigned char *rm, size_t *prm_len,
 -   const unsigned char *sigbuf, size_t siglen,
 +extern int int_rsa_verify(int dtype, const unsigned char *m, unsigned int 
 m_len,
 +unsigned char *rm, unsigned int *prm_len,
 +const unsigned char *sigbuf, unsigned int siglen,
RSA *rsa);

Makes sense.  I'll put this into the CVS (applicable to the 0.9.9-dev
branch only, if anyone is wondering -- i.e., this mismatch isn't in
any of the releases).

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]


[patch] rsa_locl.h

2006-09-07 Thread Gisle Vanem
crypto/rsa/rsa_locl.h wrongly uses 'size_t' in some arguments. It should 
match the implementation in crypto/rsa/rsa_sign.c (what happened to this 
file?). A patch:


--- orig/crypto/rsa/rsa_locl.h   2006-08-28 19:01:02 +0200
+++ crypto/rsa/rsa_locl.h 2006-08-29 15:30:50 +0200
@@ -1,4 +1,4 @@
-extern int int_rsa_verify(int dtype, const unsigned char *m, size_t m_len,
-   unsigned char *rm, size_t *prm_len,
-   const unsigned char *sigbuf, size_t siglen,
+extern int int_rsa_verify(int dtype, const unsigned char *m, unsigned int 
m_len,
+unsigned char *rm, unsigned int *prm_len,
+const unsigned char *sigbuf, unsigned int siglen,
   RSA *rsa);


--gv
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   [EMAIL PROTECTED]