On Mon, Apr 14, 2008, shankar ks wrote:

> Hi ,
>
> I have encrypted the data using pkcs7_encrypt and stored the content in one
> file . and I called the same file as a input for the decrypt using
> pkcs7_decrypt Api and copied the data to a file .
> then if i open the output file, i have the orginal data which i encrypted .
> but the problem is on each line end of the file has one extra charecter . (
> the charecter is "c " and under c "r ").
>


Sounds like the canonical translation mentioned in the manual pages. Try
including the flag PKCS7_BINARY to PKCS7_{encrypt,decrypt}.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage: http://www.drh-consultancy.demon.co.uk
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org