summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2009-08-10 12:18:58 +0900
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-11 12:59:14 +0200
commit7fc94932ad28880caed82155d65dcbfe8530e791 (patch)
tree655db92029863ee5e611fb72131c97f50e51db4b
parent8fcf1b988ad5c2338a75631696c32a31116708f1 (diff)
downloadsamba-7fc94932ad28880caed82155d65dcbfe8530e791.tar.gz
samba-7fc94932ad28880caed82155d65dcbfe8530e791.tar.xz
samba-7fc94932ad28880caed82155d65dcbfe8530e791.zip
Rename ASN1_BITFIELD to ASN1_BIT_STRING.
X.690 uses "BIT STRING" not "BIT FIELD".
-rw-r--r--lib/util/asn1.h2
-rw-r--r--source3/libsmb/clispnego.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/asn1.h b/lib/util/asn1.h
index b147cccdee0..4c6624056e0 100644
--- a/lib/util/asn1.h
+++ b/lib/util/asn1.h
@@ -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
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c
index e586d976cf3..74dba56aecc 100644
--- a/source3/libsmb/clispnego.c
+++ b/source3/libsmb/clispnego.c
@@ -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);