Module: OpenSSL::Win::Root::Crypt

Extended by:
FFI::Library
Defined in:
lib/openssl/win/root.rb

Defined Under Namespace

Classes: Ctx

Class Method Summary collapse

Class Method Details

.eachObject

Based on Puppet::Util::Windows::RootCerts



33
34
35
36
37
38
39
40
41
# File 'lib/openssl/win/root.rb', line 33

def self.each
  store = open nil, 'ROOT'
  begin
    ctx = nil
    yield Ctx.new(ctx).crt until (ctx = enum store, ctx).null?
  ensure
    close store, 0
  end
end