In message <[EMAIL PROTECTED]> on Sat, 28 Feb 2004 00:16:39 -0800 (PST), "S.Mehdi 
Sheikhalishahi" <[EMAIL PROTECTED]> said:

sm_justice> Hi All
sm_justice>  I want to have a function that get an RSA* and return
sm_justice> a newly allocated RSA structure.
sm_justice> RSA* RSA_new(RSA*);
sm_justice> I look for it on OpenSSL but doesn't exists.Everybody
sm_justice> implement it.

The following works with OpenSSL 0.9.7 and on:

RSA *RSA_dup(RSA *rsa) { 
    if (rsa) {
        RSA_up_ref(rsa);
    }
    return rsa;
}

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte   \ Tunnlandsvägen 52 \ [EMAIL PROTECTED]
[EMAIL PROTECTED]  \ S-168 36  BROMMA  \ T: +46-708-26 53 44
                    \      SWEDEN       \
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to