64 bit types and C libraries

Regan Heath regan at netmail.co.nz
Tue May 22 08:23:56 PDT 2007


Daniel919 Wrote:
> Hi, some time ago I already used bcd 
> (http://www.dsource.org/projects/bcd/) to successfully convert the 
> openssl headers to d.
> 
> It's working. The only problem is that bcd doesn't convert the macros 
> from the .h files, so that I had to manually resolve them:
> in C: SSL_CTX_set_options(ctx, SSL_OP_ALL);
> in D: SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(SSL_OP_ALL),null);
> 
> If you didn't know bcd then you should check it out, since
> it might save you a lot of work. I know the openssl headers are very 
> extensive.

Good point, this might be a better starting point.  Yep, the openssl headers are chock full of macros.  How long did it take you to resolve/replace them all with function calls?

What version of openssl did you convert/wrap?  Perhaps it would be easier to bring those up to date?

Regan


More information about the Digitalmars-d-learn mailing list