Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9;

[email protected]>;3OB9-$G$9!#e(B

ruby_1_8e$B$N%F%9%H$Ge(B
Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use
OpenSSL::PKCS7 instead
e$B$H=P$F$$$?$N$,5$$K$J$C$?$N$G%Q%C%A$G$9!#e(B

Index: ruby_1_8/test/openssl/test_pkcs7.rb

— ruby_1_8/test/openssl/test_pkcs7.rb (revision 12767)
+++ ruby_1_8/test/openssl/test_pkcs7.rb (working copy)
@@ -46,7 +46,7 @@

 data = "aaaaa\r\nbbbbb\r\nccccc\r\n"
 tmp = OpenSSL::PKCS7.sign(@ee1_cert, @rsa1024, data, ca_certs)
  • p7 = OpenSSL::PKCS7::PKCS7.new(tmp.to_der)
  • p7 = OpenSSL::PKCS7.new(tmp.to_der)
    certs = p7.certificates
    signers = p7.signers
    assert(p7.verify([], store))
    @@ -65,7 +65,7 @@
    data = “aaaaa\nbbbbb\nccccc\n”
    flag = OpenSSL::PKCS7::BINARY
    tmp = OpenSSL::PKCS7.sign(@ee1_cert, @rsa1024, data, ca_certs,
    flag)
  • p7 = OpenSSL::PKCS7::PKCS7.new(tmp.to_der)
  • p7 = OpenSSL::PKCS7.new(tmp.to_der)
    certs = p7.certificates
    signers = p7.signers
    assert(p7.verify([], store))
    @@ -87,7 +87,7 @@
    tmp1.add_signer(tmp2.signers[0])
    tmp1.add_certificate(@ee2_cert)
  • p7 = OpenSSL::PKCS7::PKCS7.new(tmp1.to_der)
  • p7 = OpenSSL::PKCS7.new(tmp1.to_der)
    certs = p7.certificates
    signers = p7.signers
    assert(p7.verify([], store))
    @@ -108,7 +108,7 @@
    data = “aaaaa\nbbbbb\nccccc\n”
    flag = OpenSSL::PKCS7::BINARY|OpenSSL::PKCS7::DETACHED
    tmp = OpenSSL::PKCS7.sign(@ee1_cert, @rsa1024, data, ca_certs,
    flag)
  • p7 = OpenSSL::PKCS7::PKCS7.new(tmp.to_der)
  • p7 = OpenSSL::PKCS7.new(tmp.to_der)
    a1 = OpenSSL::ASN1.decode(p7)

    certs = p7.certificates
    @@ -136,7 +136,7 @@
    data = “aaaaa\nbbbbb\nccccc\n”

    tmp = OpenSSL::PKCS7.encrypt(certs, data, cipher,
    OpenSSL::PKCS7::BINARY)

  • p7 = OpenSSL::PKCS7::PKCS7.new(tmp.to_der)
  • p7 = OpenSSL::PKCS7.new(tmp.to_der)
    recip = p7.recipients
    assert_equal(:enveloped, p7.type)
    assert_equal(2, recip.size)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kazuhiro NISHIYAMA wrote:

ruby_1_8e$B$N%F%9%H$Ge(B
Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead
e$B$H=P$F$$$?$N$,5$$K$J$C$?$N$G%Q%C%A$G$9!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#<h$j9~$_$^$7$?!#e(B

e$B$"$^$j5$IU$+$l$F$^$;$s$,e(Bruby-pkie$B;~Be$+$i$N%3%_%C%?$J$N$G!"$f$>$5$s$,5o$Je(B
e$B$/$J$C$?:#!"e(B[ruby-dev:29919]e$B$K$bL7=b$7$J$$$G$7$g$&!#e(B

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRphD2R9L2jg5EEGlAQKscggAx54jPUes65ANgOl124XsDhlw45Xsy7GC
q2TeMOJDFBjyX0VH427qy3wAhsCsox4PM8H9g6CzxhBYOpnK3VicjDG/13LTAzCc
FQNA8XkEWc/DY9x3LzFBjJd028Zhb6z8J+zFNjm2g49XDWnZxG/o+seZlcE0+GZT
80RSRqmS9gYxy/vdTaCMJfszvkyKQMzD6ofwoo0ZiQTQTVIB/eRfBjZprPXN1UH4
xWp9ThI69S5Yv4hcVzf+ABwVIuc2MMznr/RFjtu2tKyk0CTOiWtLygj17XjO9JYO
N06Sux80N4COmkXT4clD3npozgGz7PIjfnmkIvOVoaQZvqeItPd7xQ==
=rKSN
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

NAKAMURA, Hiroshi wrote:

ruby_1_8e$B$N%F%9%H$Ge(B
Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead
e$B$H=P$F$$$?$N$,5$$K$J$C$?$N$G%Q%C%A$G$9!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#<h$j9~$_$^$7$?!#e(B

e$B$H!"=q$$$?D>8e$K$U$H;W$$D>$7$F!“e(Breverte$B$7$^$7$?!#$9$$$^$;$s!#e(B
e$B%F%9%H$J$N$G!”!Ve(B1.8e$B;~Be$N%$%s%?!<%U%’!<%9$G$bF0$/!W$H$$$&%F%9%H$,;D$C$Fe(B
e$B$k$Y$-$G$7$g$&!#e(B

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRphHWh9L2jg5EEGlAQJTzgf+KNYeHWhIiMZlCFJW6mmSxVuO0hiOxUkl
8QMk+LdsCqpqEmrdHRTJK1/xlM7LPgIza8YABkLCKcrMeqzRCKRmO/7HtrxrANJv
NDbXpdhvSZ5J3w+ZGhEJ/e3Jae1YPba7QcrS72Mx/2CobNcTPL2aSwH3J2N3tX9b
1GznysZlMeQ6dz2Zy6MdAOefpGNJhLmPFpws3OPqlp3ogzJ5yEGWzZKu2tjQX2gk
OmzBBd8orlKgPLr1r7661fKkt8s4j/mmigGre1W/O746EWD+1KjqLfy00id5V8iZ
jHZHFTv4KjCbhJPP1p+zeWj6YC/hjiJiKghWKqs9XvY/Q3/NieNO3g==
=iZyV
-----END PGP SIGNATURE-----