lib/winrm/win32/sspi.rb
def unpack
        if ! @unpacked && @sec_buffer && @struct
          dataBufferSize, dType, dataBuffer, tokenBufferSize, tType, tokenBuffer = @sec_buffer.unpack("LLPLLP")
          dataBufferSize, dType, dataBuffer, tokenBufferSize, tType, tokenBuffer = @sec_buffer.unpack("LLP#{dataBufferSize}LLP#{tokenBufferSize}")
          @buffer = dataBuffer
          @struct = nil
          @sec_buffer = nil
          @unpacked = true
        end
      end
# Unpacks the SecurityBufferDesc structure into member variables. We
# only want to do this once per struct, so the struct is deleted
# after unpacking.
Unpacks the SecurityBufferDesc structure into member variables. We
only want to do this once per struct, so the struct is deleted
after unpacking.
Unpacks the SecurityBufferDesc structure into member variables . We only want to do this once per struct so the struct is deleted after unpacking .
def unpack
        if ! @unpacked && @sec_buffer && @struct
          dataBufferSize, dType, dataBuffer, tokenBufferSize, tType, tokenBuffer = @sec_buffer.unpack("LLPLLP")
          dataBufferSize, dType, dataBuffer, tokenBufferSize, tType, tokenBuffer = @sec_buffer.unpack("LLP#{dataBufferSize}LLP#{tokenBufferSize}")
          @buffer = dataBuffer
          @struct = nil
          @sec_buffer = nil
          @unpacked = true
        end
      end
def unpack if ! @unpacked && @sec_buffer && @struct dataBufferSize , dType , dataBuffer , tokenBufferSize , tType , tokenBuffer = @sec_buffer . unpack ( "LLPLLP" ) dataBufferSize , dType , dataBuffer , tokenBufferSize , tType , tokenBuffer = @sec_buffer . unpack ( "LLP#{dataBufferSize}LLP#{tokenBufferSize}" ) @buffer = dataBuffer @struct = nil @sec_buffer = nil @unpacked = true end end
Unpacks the SecurityBufferDesc structure into member variables.
Unpacks the SecurityBufferDesc structure into member variables .