Hi!

I'm doing a little hack reading RSA-keys from a network socket. I'm using
openssl, (0.9.6a) and am some problems setting things up. What I want is
just to listen to a port, read a key from it, and play with it then. I'm
using a BIO, and if I use BIO_read, I get the key, but using
PEM_read_RSAPrivateKey gives me BIO_gets: unsupported method. So, I though
I'd add a buffer-bio (bio->next_bio = BIO_new (BIO_f_buffer())), but that
made my program think it got a connection when it didn't...

I'm at a loss as to what I'm suppose to do, and why. Minimal code for what
I'm trying to achive would be nice. =)

(Oh, and yes, I know I't not very bright sending private keys unencrypted
over the network, but it's just for demo-purposes)

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to