class LiveIdentity::IDCRL::Structs::CertSet

Public Class Methods

build() click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 156
def self.build
    certSet = CertSet.new
    certSet[:pCertContext]   = FFI::MemoryPointer.new(:pointer)
    certSet[:pCACertContext] = FFI::MemoryPointer.new(:pointer)
    certSet[:cbPOP] = 0
    certSet[:pbPOP] = FFI::MemoryPointer.new(:PBYTE)
    certSet
end

Public Instance Methods

CACertContext() click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 174
def CACertContext
    @CertContext ||= CERT_CONTEXT.new(self[:pCACertContext])
end
CACertContext=(caCertContext) click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 178
def CACertContext= (caCertContext)
    @CACertContext = caCertContext
    self[:pCACertContext] = FFI::MemoryPointer.new(caCertContext)
end
CertContext() click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 165
def CertContext
    @CertContext ||= CERT_CONTEXT.new(self[:pCertContext])
end
CertContext=(certContext) click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 169
def CertContext= (certContext)
    @CertContext = certContext
    self[:pCertContext] = FFI::MemoryPointer.new(certContext)
end
POP() click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 183
def POP
    @POP ||= self[:pbPOP].read_string(self[:cbPOP])
end
POP=(pop) click to toggle source
# File lib/live_identity/idcrl/structs.rb, line 187
def POP= (pop)
    @POP = pop
    self[:cbPOP] = pop.bytesize
    self[:pbPOP] = FFI::MemoryPointer.from_string(pop)
end