Class: GSSAPI::LibGSSAPI::GssNameT

Inherits:
GssPointer
  • Object
show all
Defined in:
lib/gssapi/lib_gssapi.rb

Overview

A wrapper around gss_name_t so that it garbage collects

Class Method Summary collapse

Methods inherited from GssPointer

#address_of, release

Class Method Details

.release_ptr(name_ptr) ⇒ Object


172
173
174
175
176
# File 'lib/gssapi/lib_gssapi.rb', line 172

def self.release_ptr(name_ptr)
  puts "Releasing gss_name_t at #{name_ptr.address.to_s(16)}" if $DEBUG
  min_stat = FFI::MemoryPointer.new :OM_uint32
  maj_stat = LibGSSAPI.gss_release_name(min_stat, name_ptr)
end