[openssl.org #736] 0.9.6k another misuse of RSA_size()

2014-08-14 Thread Rich Salz via RT
Fixed a long time ago; adding *8 to convert RSA_size() from bytes to bits. -- Rich Salz, OpenSSL dev team; rs...@openssl.org __ OpenSSL Project http://www.openssl.org Development Mailing List

[openssl.org #736] 0.9.6k another misuse of RSA_size()

2003-10-20 Thread Takeshi Yoneda via RT
Hi,all It seems that in 0.9.6k, there is another misuse of RSA_size() . ssl/s3_clnt.c Line 1787-1789 if (rsa == NULL || RSA_size(rsa) > SSL_C_EXPORT_PKEYLENGTH(s->s3->tmp.new_cipher)) the above "if sentence"is rarely true, because RSA_size(rsa) is usually less than or equals to 2