Documentation ¶
Overview ¶
* MIT License * * Copyright (c) 2017 stacktitan * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE.
Index ¶
Constants ¶
const GssStateAcceptCompleted = 0
const GssStateAcceptIncomplete = 1
const GssStateReject = 2
const GssStateRequestMic = 3
const NtLmSSPMechTypeOid = "1.3.6.1.4.1.311.2.2.10"
const SpnegoOid = "1.3.6.1.5.5.2"
Variables ¶
This section is empty.
Functions ¶
func ObjectIDStrToInt ¶
Types ¶
type NegTokenInit ¶
type NegTokenInit struct { OID asn1.ObjectIdentifier Data NegTokenInitData `asn1:"explicit"` }
func NewNegTokenInit ¶
func NewNegTokenInit() (NegTokenInit, error)
func (*NegTokenInit) MarshalBinary ¶
func (n *NegTokenInit) MarshalBinary(meta *encoder.Metadata) ([]byte, error)
func (*NegTokenInit) UnmarshalBinary ¶
func (n *NegTokenInit) UnmarshalBinary(buf []byte, meta *encoder.Metadata) error
type NegTokenInitData ¶
type NegTokenResp ¶
type NegTokenResp struct { State asn1.Enumerated `asn1:"explicit,optional,omitempty,tag:0"` SupportedMech asn1.ObjectIdentifier `asn1:"explicit,optional,omitempty,tag:1"` ResponseToken []byte `asn1:"explicit,optional,omitempty,tag:2"` MechListMIC []byte `asn1:"explicit,optional,omitempty,tag:3"` }
func NewNegTokenResp ¶
func NewNegTokenResp() (NegTokenResp, error)
func (*NegTokenResp) MarshalBinary ¶
func (r *NegTokenResp) MarshalBinary(meta *encoder.Metadata) ([]byte, error)
func (*NegTokenResp) UnmarshalBinary ¶
func (r *NegTokenResp) UnmarshalBinary(buf []byte, meta *encoder.Metadata) error