Rename ASN1_BITFIELD to ASN1_BIT_STRING.
authorKouhei Sutou <kou@clear-code.com>
Mon, 10 Aug 2009 03:18:58 +0000 (12:18 +0900)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 11 Aug 2009 10:59:14 +0000 (12:59 +0200)
X.690 uses "BIT STRING" not "BIT FIELD".

lib/util/asn1.h
source3/libsmb/clispnego.c

index b147cccdee0b35ba953c9c9452bcd45770a429b2..4c6624056e0c6973f4945ec4055d54b63f4a3253 100644 (file)
@@ -46,7 +46,7 @@ typedef struct asn1_data ASN1_DATA;
 #define ASN1_OID 0x6
 #define ASN1_BOOLEAN 0x1
 #define ASN1_INTEGER 0x2
-#define ASN1_BITFIELD 0x3
+#define ASN1_BIT_STRING 0x3
 #define ASN1_ENUMERATED 0xa
 #define ASN1_SET 0x31
 
index e586d976cf35643c800f5698cfb242d7a05204b4..74dba56aecc69754a5c66ce153497620315b9719 100644 (file)
@@ -268,7 +268,7 @@ bool parse_negTokenTarg(DATA_BLOB blob, char *OIDs[ASN1_MAX_OIDS], DATA_BLOB *se
                uint8 flags;
 
                asn1_start_tag(data, ASN1_CONTEXT(1));
-               asn1_start_tag(data, ASN1_BITFIELD);
+               asn1_start_tag(data, ASN1_BIT_STRING);
                while (asn1_tag_remaining(data) > 0)
                        asn1_read_uint8(data, &flags);
                asn1_end_tag(data);