Hi Stephen, ThanQ for the information. One more doubt of mine is after signing and encryption do we need to use these SMIME funtions ? Is it must ? . what is the use of these
SMIME_write_PKCS & SMIME_read_PKCS funtions? --Regards shankar On 4/20/08, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > On Sun, Apr 20, 2008, shankar ks wrote: > > > Hi all, > > > > I am signing and encrypting a file using PKCS7 Api's . I know that file > has > > beec signed and encrypted.. but other person on receiving side how can > he > > knows that the file has been signed and encrypted ? > > Is there any Api is there by which we can find out whether the file is > > signed or encrypted.. so that he can decrypt and verify the file .. > > thanks in advance > > > > You can determine the outermost type using macros PKCS7_type_is_signed(), > PKCS7_type_is_enveloped(). You then normally have to extract the contents > and > analyse them in a similar way. > > There is a field which gives the type of the content but this is set to > "data" > if the content in MIME (which it usually is). > > 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 [email protected] > Automated List Manager [EMAIL PROTECTED] > -- --Best Regards Shankar
