summaryrefslogtreecommitdiffstats
path: root/source3/libads/cldap.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-22 14:06:08 +0200
committerGünther Deschner <gd@samba.org>2008-10-22 21:37:36 +0200
commitd9f1fff5b35a2c852e69c2c58e68824b5f381d01 (patch)
tree7a0c9d09fb9f3623fa9aef746266b60a7cda1873 /source3/libads/cldap.c
parentcef97c245955d0f125928740cd89984100635d29 (diff)
downloadsamba-d9f1fff5b35a2c852e69c2c58e68824b5f381d01.tar.gz
samba-d9f1fff5b35a2c852e69c2c58e68824b5f381d01.tar.xz
samba-d9f1fff5b35a2c852e69c2c58e68824b5f381d01.zip
s3: use shared asn1 code.
Guenther
Diffstat (limited to 'source3/libads/cldap.c')
-rw-r--r--source3/libads/cldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c
index c37220c9030..7180464d475 100644
--- a/source3/libads/cldap.c
+++ b/source3/libads/cldap.c
@@ -46,7 +46,7 @@ static int send_cldap_netlogon(int sock, const char *domain,
asn1_write_enumerated(&data, 0);
asn1_write_Integer(&data, 0);
asn1_write_Integer(&data, 0);
- asn1_write_BOOLEAN2(&data, False);
+ asn1_write_BOOLEAN(&data, False);
asn1_push_tag(&data, ASN1_CONTEXT(0));
if (domain) {
@@ -164,12 +164,12 @@ static int recv_cldap_netlogon(TALLOC_CTX *mem_ctx,
asn1_start_tag(&data, ASN1_SEQUENCE(0));
asn1_read_Integer(&data, &i1);
asn1_start_tag(&data, ASN1_APPLICATION(4));
- asn1_read_OctetString(&data, &os1);
+ asn1_read_OctetString(&data, NULL, &os1);
asn1_start_tag(&data, ASN1_SEQUENCE(0));
asn1_start_tag(&data, ASN1_SEQUENCE(0));
- asn1_read_OctetString(&data, &os2);
+ asn1_read_OctetString(&data, NULL, &os2);
asn1_start_tag(&data, ASN1_SET);
- asn1_read_OctetString(&data, &os3);
+ asn1_read_OctetString(&data, NULL, &os3);
asn1_end_tag(&data);
asn1_end_tag(&data);
asn1_end_tag(&data);