I wanted to read a prvkey from rsa protected file, so
I used
RSA * rsa=NULL;
...
rsa=PEM_read_bio_RSAPrivateKey(in,NULL,NULL,NULL);
//in is valid here
,
then it core_dumped.
I used gdb to view the stack as follows:
#0 0x2c1c8 in RSA_size ()
#1 0x25970 in RSA_print ()
#2 0x22320 in main (argc=0, argv=0xffbefc28) at
sign.c:73
Can any one tell me what to do? I did just as what
apps/rsa.c does, but why does mine program always dump
here? The keyfile is ok, for I can open it with
"openssl rsa -in key.pem -text" command to print it.
Thanks for any help in advance.
Hazel
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]