openssl-pkcs7-bug.rb

The sample script that exhibits this behavior - Matt Venables, 03/13/2012 01:44 AM

Download (139 Bytes)

 
1
require 'openssl'
2
contents = File.read(__FILE__)
3
begin
4
  OpenSSL::PKCS7.new(contents)
5
  puts "OK"
6
rescue => e
7
  puts "Error!"
8
  puts e
9
end