This class implements the gss_buffer_desc type. Use pointer to emulate gss_buffer_t Only functions that need to call gss_release_buffer should use this type. It states in the manpage for each function whether or not it should be called. If it does not you should be using UnManagedGssBufferDesc instead.
# File lib/gssapi/lib_gssapi.rb, line 114 def initialize(ptr = nil) if(ptr.nil?) super(FFI::Pointer.new(FFI::MemoryPointer.new(self.size))) else super(ptr) end end
# File lib/gssapi/lib_gssapi.rb, line 122 def self.release(ptr) puts "Releasing ManagedGssBufferDesc at #{ptr.address.to_s(16)}" if $DEBUG min_stat = FFI::MemoryPointer.new :OM_uint32 maj_stat = LibGSSAPI.gss_release_buffer(min_stat, ptr) end