summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-19 07:21:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:30 -0500
commit68853a1c7be11ffaaef4ad2e3f78a97f0b401b68 (patch)
tree808bbcf24b8bdf98c4615daf892958b9eb41ec55 /source4/libcli
parent28fd9ea80befe049ee786a9e4c7454181a576e9a (diff)
downloadsamba-68853a1c7be11ffaaef4ad2e3f78a97f0b401b68.tar.gz
samba-68853a1c7be11ffaaef4ad2e3f78a97f0b401b68.tar.bz2
samba-68853a1c7be11ffaaef4ad2e3f78a97f0b401b68.zip
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)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/asn1.c20
1 files changed, 0 insertions, 20 deletions
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)
{