Skip to content

Commit

Permalink
Bump libsodium version up to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed May 24, 2013
1 parent e03743b commit 907bf0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rbnacl/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'rake/clean'
require 'digest/sha2'

LIBSODIUM_VERSION = "0.2"
LIBSODIUM_VERSION = "0.4.1"

def sh_hidden(command)
STDERR.puts("*** Executing: #{command}")
Expand All @@ -22,7 +22,7 @@ def sh_hidden(command)
sh "curl -O http://download.dnscrypt.org/libsodium/releases/libsodium-#{LIBSODIUM_VERSION}.tar.gz"

digest = Digest::SHA256.hexdigest(File.read(libsodium_tarball))
if digest != "e99a6b69adc080a5acf6b8a49fdc74b61d6f3579b590e85c93446a8325dde100"
if digest != "65756c7832950401cc0e6ee0e99b165974244e749f40f33d465f56447bae8ce3"
rm libsodium_tarball
raise "#{libsodium_tarball} failed checksum!"
end
Expand Down

0 comments on commit 907bf0c

Please sign in to comment.