Hello Steve, Thank you for the clarification. It addresses my problem.
Thanks and Regards Vijay On 9/12/07, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 12, 2007, Vijayekkumaran M wrote: > > > Hello All, > > > > This is the first time I am posting to this forum. > > > > If I am asking this question in the wrong forum please redirect me. > > > > I am using OpenSSL 0.9.8. > > > > I need to create a detached pkcs#7 signature of some piece of data and > store > > the signature in BER encoded format. > > > > >From the man pages I understand that I can use pkcs7_sign function with > > appropriate flags to get the detached signature. > > > > The problem I face is with writing the signature into a file in BER > encoded > > format. Only SMIME_write_PKCS7()seems to be available for outputting the > > signature. > > > > d2i_PKCS7_bio_stream() is documented to have been implemented in 0.9.9but I > > could not find that in even the latest development snapshot, obviously > it is > > yet to be implemented. > > > > Is there any other way to output pkcs7_signed data to BER format? > > > > Unless you want to process a huge amount of data the normal DER functions > will > suffice. Check the documentation that came with your version of OpenSSL > for > details. > > For a detached signature you can output it using d2i_PKCS7_bio(). > > See also: > > http://www.openssl.org/support/faq.html#PROG4 > > Steve. > -- > Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage > OpenSSL project core developer and freelance consultant. > Funding needed! Details on homepage. > 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 [EMAIL PROTECTED] >