aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2001-11-20 19:39:37 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2001-11-20 19:39:37 +0000
commite588321f8a5ae949ae246b480b1639f176be870a (patch)
treed04bf1b41dbb451360b0031c0e5a41f989e5e11f /test
parentcceffafefe8d78e8b7b8d0c4563ec0d48f44eed3 (diff)
downloadruby-openssl-history-e588321f8a5ae949ae246b480b1639f176be870a.tar.gz
- HMAC added
- Config came back - API changed in PKCS7 (param. order) - API changed in Cipher (can't add data in .new) - indentation changed (only half of files, 2nd half to do) - some API doc added to README
Diffstat (limited to 'test')
-rwxr-xr-xtest/pkcs7.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pkcs7.rb b/test/pkcs7.rb
index 7852c05..b4f4b3b 100755
--- a/test/pkcs7.rb
+++ b/test/pkcs7.rb
@@ -13,8 +13,8 @@ cert = Certificate.new(str)
key = RSA.new(str)
p7 = PKCS7.new(SIGNED)
-signer = Signer.new(key, cert, Digest::SHA1.new)
-p7.add_signer(key, signer)
+signer = Signer.new(cert, key, Digest::SHA1.new)
+p7.add_signer(signer, key)
p7.add_certificate(cert)
p7.add_data(data, true) #...(data, (detached=false))
puts (str = p7.to_pem)