Exemplo n.º 1
0
        protected override void Decode(byte[] data)
        {
            NdrPickledType    npt = new NdrPickledType(data);
            _Unmarshal_Helper uh  = new _Unmarshal_Helper(npt.Data);

            s4u = (_S4U_DELEGATION_INFO)uh.ReadReferentValue(uh.ReadStruct <_S4U_DELEGATION_INFO>, false);
        }
Exemplo n.º 2
0
        protected override void Decode(byte[] data)
        {
            NdrPickledType    npt = new NdrPickledType(data);
            _Unmarshal_Helper uh  = new _Unmarshal_Helper(npt.Data);

            KerbValidationInfo = (_KERB_VALIDATION_INFO)uh.ReadReferentValue(uh.ReadStruct <_KERB_VALIDATION_INFO>, false);
        }
Exemplo n.º 3
0
        internal static ExtendedErrorInfo?Decode(byte[] data)
        {
            NdrPickledType     pickled_type = new NdrPickledType(data);
            NdrUnmarshalBuffer u            = new NdrUnmarshalBuffer(pickled_type);
            var res = u.ReadReferentValue(u.ReadStruct <ExtendedErrorInfo>, false);

            return(res);
        }
Exemplo n.º 4
0
        protected override void Decode(byte[] data)
        {
            Version        = br.ReadInt32();
            EncryptionType = (Interop.KERB_ETYPE)br.ReadInt32();

            if (key == null)
            {
                return;
            }

            var encCredData   = br.ReadBytes((int)(br.BaseStream.Length - br.BaseStream.Position));
            var plainCredData = Crypto.KerberosDecrypt(EncryptionType, Interop.KRB_KEY_USAGE_KRB_NON_KERB_SALT, key, encCredData);

            NdrPickledType    npt = new NdrPickledType(plainCredData);
            _Unmarshal_Helper uh  = new _Unmarshal_Helper(npt.Data);

            CredentialInfo = uh.ReadReferentValue(uh.ReadStruct <_PAC_CREDENTIAL_DATA>, false);
        }
Exemplo n.º 5
0
        internal static KERB_VALIDATION_INFO?Decode(NdrPickledType pickled_type)
        {
            _Unmarshal_Helper u = new _Unmarshal_Helper(pickled_type);

            return(u.ReadReferentValue(u.Read_0, false));
        }
Exemplo n.º 6
0
 internal _Unmarshal_Helper(NdrPickledType pickled_type) :
     base(pickled_type)
 {
 }
Exemplo n.º 7
0
        internal static CLAIMS_SET?Decode(NdrPickledType pickled_type)
        {
            _Unmarshal_HelperClaimSet u = new _Unmarshal_HelperClaimSet(pickled_type);

            return(u.ReadReferentValue(u.Read_0, false));
        }
        internal static CLAIM_SET_METADATA?Decode(NdrPickledType pickled_type)
        {
            _Unmarshal_HelperClaimSetMetadata u = new _Unmarshal_HelperClaimSetMetadata(pickled_type);

            return(u.ReadReferentValue(u.Read_0, false));
        }
 internal _Unmarshal_HelperClaimSetMetadata(NdrPickledType pickled_type) :
     base(pickled_type)
 {
 }