From ecf8cebf322717d6aea3f9f05ec9d210ffbb4aa6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 19 Jun 2009 17:39:13 +0200 Subject: Move asn1_blob() to lib/util/asn1.c --- source3/lib/tldap.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source3/lib/tldap.c') diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index 7a36310ee4..4d2cd86f75 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -318,19 +318,6 @@ static ssize_t read_ldap_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, return talloc_get_size(*pbuf); } -static bool asn1_blob(const struct asn1_data *asn1, DATA_BLOB *blob) -{ - if (asn1->has_error) { - return false; - } - if (asn1->nesting != NULL) { - return false; - } - blob->data = asn1->data; - blob->length = asn1->length; - return true; -} - static void asn1_load_nocopy(struct asn1_data *data, uint8_t *buf, size_t len) { ZERO_STRUCTP(data); -- cgit