RE: reading and writing into pem file

2010-09-03 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of krishnamurthy santhanam > Sent: Thursday, 02 September, 2010 14:17 > To: openssl-users@openssl.org > Subject: Re: reading and writing into pem file This message is not about this subject. Please use subject

Re: reading and writing into pem file

2010-09-02 Thread krishnamurthy santhanam
Hi, Thanks for your input..it worked for me...i am writing encryption and decryption using RSA... #include #include #include #include #include #include RSA * readPubKey(char *filename) { RSA *key; BIO *bp; ERR_load_crypto_strings(); bp=BIO_new(BIO_s_file()); if (BIO_read_fil

RE: reading and writing into pem file

2010-08-31 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of krishnamurthy santhanam > Sent: Tuesday, 31 August, 2010 13:33 > #include > writekey(RSA *key2) You're obviously using a C89 (or earlier) compiler or mode. Snipped most non-I/O steps: > { > EVP_PKE

reading and writing into pem file

2010-08-31 Thread krishnamurthy santhanam
Hi, i had tried to generating the key and writing in the pem file...but it is giving segmentation fault...without .readprivatekey and readpublickey functions these is generating pem file...i dont know why? any knows guide me #include #include #include #include RSA *generatersa() { RSA *rsa; rsa