Extracting RecipientInfos/DER from S/MIME message

2010-04-14 Thread Benjamin Amling
Hello, is it possible to extract the DER blob from the RecipientInfos-part of a S/MIME message? I tried the following steps already but couldn't manage to get what I want: * BIO *bin = BIO_new(BIO_s_mem()); BIO_write(bin,

Re: Extracting RecipientInfos/DER from S/MIME message

2010-04-14 Thread Dr. Stephen Henson
On Wed, Apr 14, 2010, Benjamin Amling wrote: Hello, is it possible to extract the DER blob from the RecipientInfos-part of a S/MIME message? I tried the following steps already but couldn't manage to get what I want: *

Re: problem verifying OCSP signature

2010-04-14 Thread Dr. Stephen Henson
On Tue, Apr 13, 2010, Chris Bare wrote: Additional candidate signer certificates need to be included in the -verify_other option. If the OCSP signing certificate is self signed then it needs to be explicitly trusted which is the -VAfile option if you use that it will also be

RE: openSSL and PKCS #12 certificates

2010-04-14 Thread Rémi Després-Smyth
Merci beaucoup, Mounir, but I got the same error. Given the time constraints I have, I think my path moving forward is to try another library or two to see if I can find one that uses openSSL properly. Au plaisir, Remi. -Original Message- From: owner-openssl-us...@openssl.org

Re: ERROR LINK2019

2010-04-14 Thread Modem Man
Hi, 芦翔 please check, if you are using the right include path fpr the right .h files. After calling this: C:\From_Here\openssl.1.0.0\ perl Configure VC-WIN32 no-asm --prefix=c:/to_here/ssl C:\From_Here\openssl.1.0.0\ ms\do_ms you DON'T should use: -I C:\From_Here\openssl.1.0.0\include (or

Re: ERROR LINK2019

2010-04-14 Thread Modem Man
Hi 芦翔, I also used mixed C / C++ Project and did not used the probably well known #ifdef __cplusplus extern C { #endif #include openssl\.h #ifdef __cplusplus } #endif stuff. It worked for me without this. Used VS 2005, which surely has same behaviour as VS 2008. M.M. hi, Thank you

Costs (was: Extract DER of RecipientInfos from CMS)

2010-04-14 Thread Michael Ströder
Steve, Dr. Stephen Henson wrote: On Wed, Mar 24, 2010, Michael Strder wrote: Is there an API function in OpenSSL which extracts only the DER blob of RecipientInfos from a CMS message (needed for encrypted S/MIME message). Or has that to be done low-level with ASN.1 parser? No you can't

ASN1_UTCTIME Question

2010-04-14 Thread Jerry Wang
Hi, I was just wondering what is the best way for converting type ASN1_UTCTIME* to type char* or string in C++? Thanks in advance, Jerry

RE: ERROR LINK2019

2010-04-14 Thread 芦翔
Dear Modem, Thank you for your instructions. I have overcomed the problem by putting extern in my code, and rebuild the openssl lib as your notes. I really appreciate the helps from you and Wiliam. Now, I can build my application. However, after building the application, it pops a

Re: ERROR LINK2019

2010-04-14 Thread Modem Man
Hi 芦翔, the way Windows/C is using the SSL Lib here, is a so called Dynamic Link Library via IMPLIB loading. This means, each DLL file has a corresponding LIB file which is statically to be linked together with your source code's OBJ files to become your EXE file. But this LIB is only a so called

Re: ASN1_UTCTIME Question

2010-04-14 Thread Patrick Patterson
On 14/04/10 1:05 PM, Jerry Wang wrote: Hi, I was just wondering what is the best way for converting type ASN1_UTCTIME* to type char* or string in C++? Probably the best way is to convert it to a time_t, and then use your normal platform functions to convert that to a string. This has the

Re: openSSL and PKCS #12 certificates

2010-04-14 Thread Mounir IDRASSI
Bon courage pour la suite! -- Mounir IDRASSI IDRIX http://www.idrix.fr On 4/14/2010 3:01 PM, Rémi Després-Smyth wrote: Merci beaucoup, Mounir, but I got the same error. Given the time constraints I have, I think my path moving forward is to try another library or two to see if I can find one

RE: ERROR LINK2019

2010-04-14 Thread 芦翔
Dear Modem, Thank you so much. Your instructions are so detailed and helpful for my code. As you said, I put the built dll files into the windows folders. Now, all the programs are running smoothly. I really appreciate your patient and kind help. Best Regards, Xiang Date: Wed, 14

Information wanted on OpenSSL cipher alias HIGH, MEDIUM and LOW.

2010-04-14 Thread Bhat, Jayalakshmi Manjunath
Hi All, I wanted to know when we use ALL:!SSLv2:!EXPORT:!LOW:!MEDIUM:!DH to select the ciphers how do OpenSSL understands what are ciphers are available under LOW and MEDIUM. Ssleay.txt documents names LOW,MEDIUM and HIGH as aliases. Please can someone provide me more information on this? Thanks