X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FNovell.Directory.Ldap%2FNovell.Directory.Ldap.Asn1%2FLBERDecoder.cs;h=a95aa4967797ffc10546258c467e752fdfc0d723;hb=881f83658281916d8f0784df7c726ecb7cc289db;hp=0cf4847a7d34b12ffb20bcbb73cbd2ee4a9b8a88;hpb=4d207c1c3a4db0e63ed444862451d2fa4c58acc8;p=mono.git diff --git a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Asn1/LBERDecoder.cs b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Asn1/LBERDecoder.cs old mode 100755 new mode 100644 index 0cf4847a7d3..a95aa496779 --- a/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Asn1/LBERDecoder.cs +++ b/mcs/class/Novell.Directory.Ldap/Novell.Directory.Ldap.Asn1/LBERDecoder.cs @@ -37,7 +37,7 @@ namespace Novell.Directory.Ldap.Asn1 /// This class provides LBER decoding routines for ASN.1 Types. LBER is a /// subset of BER as described in the following taken from 5.1 of RFC 2251: /// - ///

5.1. Mapping Onto BER-based Transport Services + /// 5.1. Mapping Onto BER-based Transport Services /// /// The protocol elements of Ldap are encoded for exchange using the /// Basic Encoding Rules (BER) [11] of ASN.1 [3]. However, due to the @@ -45,29 +45,28 @@ namespace Novell.Directory.Ldap.Asn1 /// following additional restrictions are placed on BER-encodings of Ldap /// protocol elements: /// - ///

  • (1) Only the definite form of length encoding will be used. + ///
  • (1) Only the definite form of length encoding will be used.
  • /// - ///
  • (2) OCTET STRING values will be encoded in the primitive form only. + ///
  • (2) OCTET STRING values will be encoded in the primitive form only.
  • /// ///
  • (3) If the value of a BOOLEAN type is true, the encoding MUST have - /// its contents octets set to hex "FF". + /// its contents octets set to hex "FF".
  • /// ///
  • (4) If a value of a type is its default value, it MUST be absent. /// Only some BOOLEAN and INTEGER types have default values in this /// protocol definition. /// - ///

    These restrictions do not apply to ASN.1 types encapsulated inside of + /// These restrictions do not apply to ASN.1 types encapsulated inside of /// OCTET STRING values, such as attribute values, unless otherwise - /// noted. + /// noted.

  • /// - ///

    [3] ITU-T Rec. X.680, "Abstract Syntax Notation One (ASN.1) - + /// [3] ITU-T Rec. X.680, "Abstract Syntax Notation One (ASN.1) - /// Specification of Basic Notation", 1994. /// - ///

    [11] ITU-T Rec. X.690, "Specification of ASN.1 encoding rules: Basic, + /// [11] ITU-T Rec. X.690, "Specification of ASN.1 encoding rules: Basic, /// Canonical, and Distinguished Encoding Rules", 1994. /// ///

    - [CLSCompliantAttribute(true)] public class LBERDecoder : Asn1Decoder { public LBERDecoder() @@ -118,7 +117,7 @@ namespace Novell.Directory.Ldap.Asn1 /// Decode an LBER encoded value into an Asn1Object from an InputStream. /// - ///

    This method also returns the total length of this encoded + /// This method also returns the total length of this encoded /// Asn1Object (length of type + length of length + length of content) /// in the parameter len. This information is helpful when decoding /// structured types.