Hi
I added this line and it works.
OpenSSL_add_all_algorithms();
thanks
mahesh
-----Original Message-----
From: Mahesh Anantharaman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 22, 2000 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: sample code.
Hi
I am not able to load the private key through my code. I am doing
the same way as smime.c.
the keyfile = "test.pem"
and the passin = "test1234"
It could not load it. I am using "apps.h".
Do I have to do some thing further.
thanks
regards
mahesh
if (!(key = load_key(bio_err, keyfile, FORMAT_PEM, passin))) {
BIO_printf(bio_err, "Can't read recipient certificate file
%s\n", keyfile);
ERR_print_errors(bio_err);
printf("Error cannot load key file");
return -1;
-----Original Message-----
From: Dr S N Henson [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 22, 2000 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: sample code.
Stephane Bortzmeyer wrote:
>
> On Thursday 21 December 2000, at 19 h 22, the keyboard of Mahesh
Anantharaman
> <[EMAIL PROTECTED]> wrote:
>
> > Can any body send me a sample code that does "openssl smime decrypt
> > function".
>
> OpenSSL can do S/MIME? I wasn't aware of that. And I cannot find
documentation.
>
Yes OpenSSL can do S/MIME. There's a manual page for the smime utility
(part of the openssl program) but no API documentation yet. However the
API used by the smime application apps/smime.c is designed to be
relatively easy to use.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]