Skip to content

Commit

Permalink
Fix: OpenSSL 1.1.0 removed support for DSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Apr 3, 2017
1 parent b67a118 commit 58b8481
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions spec/std/openssl/hmac_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ require "openssl/hmac"

describe OpenSSL::HMAC do
[
{:dss, "46b4ec586117154dacd49d664e5d63fdc88efb51"},
{:dss1, "46b4ec586117154dacd49d664e5d63fdc88efb51"},
{:md4, "f3593b56f00b25c8af31d02ddef6d2d0"},
{:md5, "0c7a250281315ab863549f66cd8a3a53"},
{:sha1, "46b4ec586117154dacd49d664e5d63fdc88efb51"},
Expand Down
2 changes: 0 additions & 2 deletions src/openssl/hmac.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ require "./lib_crypto"
class OpenSSL::HMAC
def self.digest(algorithm : Symbol, key, data) : Bytes
evp = case algorithm
when :dss then LibCrypto.evp_dss
when :dss1 then LibCrypto.evp_dss1
when :md4 then LibCrypto.evp_md4
when :md5 then LibCrypto.evp_md5
when :ripemd160 then LibCrypto.evp_ripemd160
Expand Down
2 changes: 0 additions & 2 deletions src/openssl/lib_crypto.cr
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ lib LibCrypto

type EVP_MD = Void*

fun evp_dss = EVP_dss : EVP_MD
fun evp_dss1 = EVP_dss1 : EVP_MD
fun evp_md4 = EVP_md4 : EVP_MD
fun evp_md5 = EVP_md5 : EVP_MD
fun evp_ripemd160 = EVP_ripemd160 : EVP_MD
Expand Down

0 comments on commit 58b8481

Please sign in to comment.