Dynamic OpenSSL import library

Tim Burrell tim.burrell at transgaming.com
Fri Feb 25 10:56:27 CST 2011

Hi all,

I'm one of TransGaming's R&D developers working on our portability products.

We've recently done a cleanup and refactoring to the OpenSSL loading 
routines; rather than loading the libraries in a few different places we 
moved the code into an OpenSSL importer that consolidates the loading 
into a separate library.

Our importer does some additional things that might not be overly useful 
to Wine, such as detecting and loading different versions of the OpenSSL 
libraries at runtime (rather that using the version detected while 
configuring), but the cleanup and refactoring worked out quite well, and 
we think the code would still be valuable to Wine.

We could port this code back to the Wine tree, but it will take some 
effort to do so.  Also, our current implementation of the dynamic 
OpenSSL importer isn't complete; we're only loading the specific 
functions we've needed up until now.

Before going to the effort of completing the library, and porting it 
back to the Wine tree, I thought I'd reach out first to see if it's even 
something that's of interest?  If it is, great, we can complete the 
library and submit some patches for review, but if the concept isn't of 
interest then we'll just continue using it internally.

I've attached a copy of the main C file from the OpenSSL import library, 
so you can get an idea for what it will look like.  Keeping in mind that 
it's not finished yet, and needs some cleaning up, does this approach 
look acceptable?  Also attached is a patch (that won't directly apply) 
that should give an idea of its intended usage.

Anyone have thoughts / questions?



Tim Burrell
TransGaming <http://transgaming.com> Inc.
431 King Street West, Suite 600
Toronto, Ontario, Canada M5V 1K4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110225/1e2b1c6e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sslimport.c
Type: text/x-csrc
Size: 9716 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110225/1e2b1c6e/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wininet_use_openssl_library.diff
Type: text/x-patch
Size: 15252 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110225/1e2b1c6e/attachment-0001.bin>

More information about the wine-devel mailing list