The new API is called RSA_generate_key_ex() and has a different interface.

To convert from the older to the newer, see attached files: these are from a
local __patched__ openssl tree, which means the BN_value_RSA_F4() API is
mine, not OpenSSL's.

Attached files:

- a patched copy of demos/eay/loadrsa.c -- look for the #if 0 -- #else --
#endif section to see how the migration goes.
- crypto/rsa/rsa_depr.c so you can see what the internals of the deprecated
call are these days
- crypto/rsa/rsa_lib.c -- the __patched__ version which shows how I
implemented the RSA_F4() function, rip from there iff you need that thing.
- documentation in doc/crypto/RSA_.... .pod files; for some odd reason
there's the old
     http://www.openssl.org/docs/crypto/RSA_generate_key.html
  but not the new
     http://www.openssl.org/docs/crypto/RSA_generate_key_ex.html
  doc on-line yet.

the whole shebang bundled in a 7z for minimum transfer size.

[Edit: 5.5KB attachment is a bit much for a ww mailing list; instead I put
it online at URL shown below]
  http://hebbut.net/openssl_rsa_ex_20100711.7z


When you are in doubt, you can generate the HTML documentation locally by
running running

  make install_html_docs

in your own openssl source tree and take it from there. (This requires
pod2html by the way.)




On Mon, Jul 12, 2010 at 12:37 AM, Ian Pilcher <arequip...@gmail.com> wrote:

> I've been looking all over for this, and I can't find it.
>
> Background - I'm trying to build stunnel on a platform that doesn't
> include RSA_generate_key, so I need to modify it to use the newer API.
> At the very least, I need to know how to check the return value of the
> new API.
>
> Thanks!
>
> --
> ========================================================================
> Ian Pilcher                                         arequip...@gmail.com
> ========================================================================
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>



-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   g...@hobbelt.com
mobile: +31-6-11 120 978
--------------------------------------------------

Reply via email to