From 68853a1c7be11ffaaef4ad2e3f78a97f0b401b68 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Jun 2005 07:21:18 +0000 Subject: r7746: - added TLS support to our ldap server - this involved changing the buffer handling in the ldap server quite a lot, as it didn't handle partial packets at all - removed completely bogus asn1_object_length() function. You can't do that with BER/DER (This used to be commit fed6f4cc6ceaf83aacb581499aeaf6af4ee8ddd2) --- source4/libcli/util/asn1.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source4/libcli/util') diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c index 92f9a8c389..10afd74273 100644 --- a/source4/libcli/util/asn1.c +++ b/source4/libcli/util/asn1.c @@ -387,26 +387,6 @@ BOOL asn1_start_tag(struct asn1_data *data, uint8_t tag) } -/* Get the length to be expected in buf */ -BOOL asn1_object_length(uint8_t *buf, size_t buf_length, - uint8_t tag, size_t *result) -{ - struct asn1_data data; - - /* Fake the asn1_load to avoid the memdup, this is just to be able to - * re-use the length-reading in asn1_start_tag */ - ZERO_STRUCT(data); - data.data = buf; - data.length = buf_length; - if (!asn1_start_tag(&data, tag)) - return False; - *result = asn1_tag_remaining(&data)+data.ofs; - /* We can't use asn1_end_tag here, as we did not consume the complete - * tag, so asn1_end_tag would flag an error and not free nesting */ - talloc_free(data.nesting); - return True; -} - /* stop reading a tag */ BOOL asn1_end_tag(struct asn1_data *data) { -- cgit