diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-10 00:28:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:59 -0500 |
commit | 65baaafc34b2befac50541c5aef86e5d906d2797 (patch) | |
tree | 14196ae03ef9ba1be8e9d35ec3f067ead5e5b2e6 /source4/libcli/ldap/ldap.c | |
parent | 5d5b462bbb672c1897d24717af42cdd49ee49519 (diff) | |
download | samba-65baaafc34b2befac50541c5aef86e5d906d2797.tar.gz samba-65baaafc34b2befac50541c5aef86e5d906d2797.tar.bz2 samba-65baaafc34b2befac50541c5aef86e5d906d2797.zip |
r11620: switch the ldap client code over to using the generic packet code
(This used to be commit 1d29ad2a27d89454e5e3c4a3cf05cc5edde0208c)
Diffstat (limited to 'source4/libcli/ldap/ldap.c')
-rw-r--r-- | source4/libcli/ldap/ldap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c index 7d1758a8fa..3cfbe3a1e1 100644 --- a/source4/libcli/ldap/ldap.c +++ b/source4/libcli/ldap/ldap.c @@ -1289,3 +1289,11 @@ BOOL ldap_decode(struct asn1_data *data, struct ldap_message *msg) } +/* + return NT_STATUS_OK if a blob has enough bytes in it to be a full + ldap packet. Set packet_size if true. +*/ +NTSTATUS ldap_full_packet(void *private, DATA_BLOB blob, size_t *packet_size) +{ + return asn1_full_tag(blob, ASN1_SEQUENCE(0), packet_size); +} |