Thank you! Steve. I just added the flag; however the call goes to rsa_sign.c. I have hooked following two methods to SSLeay. Could that be a problem for Sign and verify?
int (*rsa_pub_dec)(int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding); int (*rsa_priv_enc)(int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding); Thanks, -Sitanshu -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson Sent: Wednesday, November 26, 2008 10:54 PM To: openssl-dev@openssl.org Subject: Re: RSA Sign and Verify overriding On Wed, Nov 26, 2008, Nanavati, Sitanshu wrote: > Hello All, > > I am trying to override the RSA_sign() (with my_RSA_sign() ) and RSA_verify() > (with my_RSA_verify() ) methods thru an engine. From the app I'm invoking > RSA_sign(...) however the call still goes to OpenSSL method in rsa_sign.c. > Anything extra call required here? I am able to override RSA_encrypt and > RSA_decrypt though. I just added sign and verify to the RSA_method and was > expecting them to work. > > Any help would be appreciated. > You need to set the flag RSA_FLAG_SIGN_VER as well in the method structure. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]