Hi,
  
  Actually I want to use CMS functionalities for creating an enveloped data
on a different OS (non linux/non windows).So, in that case is it possible
for me to envoke CMS_encrypt() api to encrypt my message.CMS_encrypt()  is
calling CMS_EnvelopedData_create api which inturn calls CMS_ContentInfo_new
api. Now,since I am going to use OpenSSL source code for another
platform,can you tell me the library/file that needs to be included for
resolving the linking for CMS_ContentInfo_new api.

1) I copy crypto folder of OpenSSL in my project.
2) I envoke CMS_encrypt() function by writing a test application.
3) is there anything else that is needed to build it and subsequently test
it.

Regards,
Anoop


Dr. Stephen Henson wrote:
> 
> On Sun, Apr 19, 2009, anoopg wrote:
> 
>> 
>> Hello Dr. Henson ,
>>    Thanks a lot for your reply.Actually, I want to extract the CMS
>> functionalities for SMIME using the OpenSSL source code.As you said, the
>> CMS
>> structures are opaque and not exposed in public headers. I think in that
>> case,it must be referring to some internal library/binary which ( I
>> think)
>> is not present in the OpenSSL source code,please correct me if I am
>> wrong. I
>> am wondering how other people are able to use OpenSSL source for CMS
>> encryption (using cms.c /cms_smime.c).They should find linking errors and
>> if
>> not,then something is wrong with my understanding of the OpenSSL source
>> code.Would you please throw some more light on this issue.  
>> 
> 
> At a user level you can use the cms utility with source in apps/cms.c . It
> is
> however a rather complex utility for the beginner to understand because it
> can
> perform almost all S/MIME functions in one source file.
> 
> There are much simpler examples in demos/cms which perform basic
> functions.
> 
> 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
> Development Mailing List                       [email protected]
> Automated List Manager                           [email protected]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Issues-with-CMS-for-SMIME-implementation-using-OPENSSL-source-code-tp23110079p23134281.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to