www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - An Alternative to Deimos' OpenSSL Bindings

reply Meta <jared771 gmail.com> writes:
I wanted to use OpenSSL from D but I noticed that the Deimos 
bindings are for version 1.0.0e, which according to OpenSSL.org 
is an out of date version. Are there any bindings for the latest 
version, or an alternative that I could use? I know I could use 
std.digest for SHA512, but I still need a secure random number 
generator.
Jun 12 2016
next sibling parent Peter Lewis <peter werl.me> writes:
On Sunday, 12 June 2016 at 19:12:37 UTC, Meta wrote:
 I wanted to use OpenSSL from D but I noticed that the Deimos 
 bindings are for version 1.0.0e, which according to OpenSSL.org 
 is an out of date version. Are there any bindings for the 
 latest version, or an alternative that I could use? I know I 
 could use std.digest for SHA512, but I still need a secure 
 random number generator.
There is an alternative, if you search dub you can find this[1] library. It has been updated last in December 2016. Hope it works well for you! 1 https://code.dlang.org/packages/dcrypto
Jun 12 2016
prev sibling parent reply Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Sunday, 12 June 2016 at 19:12:37 UTC, Meta wrote:
 I wanted to use OpenSSL from D but I noticed that the Deimos 
 bindings are for version 1.0.0e, which according to OpenSSL.org 
 is an out of date version. Are there any bindings for the 
 latest version, or an alternative that I could use? I know I 
 could use std.digest for SHA512, but I still need a secure 
 random number generator.
What's the problem? According to the OpenSSL changelog, SHA-512 was added in v0.9.8.
Jun 12 2016
parent David Nadlinger <code klickverbot.at> writes:
On Sunday, 12 June 2016 at 21:49:21 UTC, Vladimir Panteleev wrote:
 On Sunday, 12 June 2016 at 19:12:37 UTC, Meta wrote:
 I wanted to use OpenSSL from D but I noticed that the Deimos 
 bindings are for version 1.0.0e, which according to 
 OpenSSL.org is an out of date version. Are there any bindings 
 for the latest version, or an alternative that I could use? I 
 know I could use std.digest for SHA512, but I still need a 
 secure random number generator.
What's the problem? According to the OpenSSL changelog, SHA-512 was added in v0.9.8.
Just in case that isn't clear, what Vladimir is pointing out is that unless you need a feature from the new versions – or OpenSSL breaks binary compatibility, which is unlikely to happen anytime soon – the old headers will work just fine. — David
Jun 12 2016