Exemplo n.º 1
0
        private bool ProcessedAsNegoEx(Asn1Element sequence, MechType firstMech)
        {
            if (firstMech == null || firstMech.Oid != MechType.NEGOEX)
            {
                return(false);
            }

            NegotiateExtension = new NegotiateExtension(sequence.Value);

            return(true);
        }
Exemplo n.º 2
0
        public InitialContextToken(Asn1Element sequence, IEnumerable <MechType> mechTypes)
        {
            var childNode = new Asn1Element(sequence.Value);

            if (childNode.Count <= 0 && mechTypes.Any(a => a.Oid == MechType.NEGOEX))
            {
                NegotiateExtension = new NegotiateExtension(sequence.Value);
            }

            for (var i = 0; i < childNode.Count; i++)
            {
                var node = childNode[i];

                if (node.ContextSpecificTag == MechType.ContextTag)
                {
                    ThisMech = new MechType(node.AsString());
                }
                else if (node.Count > 0)
                {
                    InnerContextToken = new KrbApReq(node[0]);
                }
            }
        }