Got me on what’s happening here.
On line 86 of
https://github.com/jruby/jruby-ossl/blob/master/src/java/org/jruby/ext/openssl/PKCS7.java,
it defines data as an instance variable.
In RC2 data somehow became private.
So for example in the httpclient gem you have code like this:
p7 = PKCS7.read_smime(File.open(file) { |f| f.read })
selfcert = X509::Certificate.new(cert_str)
store = X509::Store.new
store.add_cert(selfcert)
if (p7.verify(nil, store, p7.data, 0))
The last line in the above code throws NoMethodError: private method
`data’ called for #OpenSSL::PKCS7::PKCS7:0x15ea9246.
It’s not a change in the jruby-openssl or httpclient gems, I confirmed
that. It’s RC2. RC1 works fine.
Chris