Re: OpenSSL migration - Linking issues

2012-09-01 Thread Gulyás Attila
Thank you for the answer, I think I know now what the problem is:
I'm using the ssleay32 and libeay32 in another project, BUT I forgot to
update that project with the newly added files.
So while the libraries compile nice, the linker doesn't kick in yet, but it
does at the project where I refer to them. That's why I got the error
messages only when compiling (and then linking!) my project referring to
the libs.
I'm working on the update, will write back once I succeeded.

2012/9/1 Dave Thompson dthomp...@prinpay.com

  From: owner-openssl-us...@openssl.org On Behalf Of Hankyaku
  Sent: Friday, 31 August, 2012 05:29

  I'm working on a bigger poject where openSSL is used. Right
  now I'm doing the migration from 1.0.0e to 1.0.1c. On the way
  I get a number of linking errors, like: ssleay32.lib(ssl_sess.obj)
  : error LNK2001: unresolved external symbol _BUF_strdup
 
  This problem relates to the new additions only, and the
  problem is quite interesting. I manage to compile the ssleay32
  project (containing openSSL) perfectly, but when I compile
  another project relying on ssleay32, I get linking errors
  similar to that one above. What did I get wrong? I checked
  all references, refreshed the files, made clean rebuilds,
  I tried everything. :(

 OpenSSL normally builds to two libraries -- libssl.* and
 libcrypto.* on Unix, ssleay32.* and libeay32.* on Windows.
 Your application needs to link both, and depending on the
 linker it may need to link them in that order (I'm not sure
 about the MS linker, or linkers, in this regard).

 But this shouldn't be different in 1.0.1 or even 1.0.0 --
 it's been this way for years. Possibly your 1.0.0e
 wasn't a standard build but a modified one that combined
 into a single library?

 __
 OpenSSL Project http://www.openssl.org
 User Support Mailing Listopenssl-users@openssl.org
 Automated List Manager   majord...@openssl.org




Re: SSL_CTX_set_default_verify_paths and Windows?

2012-09-01 Thread Dr. Stephen Henson
On Fri, Aug 31, 2012, Dave Thompson wrote:
 like a scifi movie monster feeding on nuclear bomb radiation. 
 There is definitely an engine for MS CAPI, and I thought I had 
 heard mention that the engine interface was adding at least some 
 truststore function. But looking in 1.0.1c I don't see any trace 
 of such, so maybe I misunderstood or maybe it isn't cooked yet.
 

No it isn't there at present. Some research is needed on how to retrieve the
trust setting for CAPI stores first (so email CAs don't get trusted for
servers).

It is possible to dump the contents of a cert store using some of the ctrl
options though, but that only dumps them to standard output. 

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org