]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9393 Expose and document ldap_pvt_put_filter
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 23 Oct 2024 09:19:57 +0000 (10:19 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 26 Oct 2024 00:27:50 +0000 (00:27 +0000)
doc/man/man3/ldap_search.3
include/ldap_pvt.h
include/openldap.h

index 9fa78ae714d5fa79e8e07e0375726af8e2c301f9..6bf8a6ff577fdbce4c63cdef04a767489f4830e8 100644 (file)
@@ -43,6 +43,12 @@ struct timeval *\fItimeout\fB,
 int \fIsizelimit\fB,
 LDAPMessage **\fIres\fB );
 .RE
+.LP
+.ft B
+#include <openldap.h>
+.LP
+.BI "int ldap_pvt_put_filter( BerElement *" ber ", const char *" str " );"
+.RE
 .SH DESCRIPTION
 These routines are used to perform LDAP search operations.
 The
@@ -105,6 +111,18 @@ case of failure, indicating the nature of the failure
 of the operation.  See
 .BR ldap_error (3)
 for details.
+.LP
+.B ldap_pvt_put_filter()
+parses a string filter provided in
+.IR str ,
+performs structural validation and serializes it into the BerElement
+passed in
+.I ber
+as a side-effect. On error, the encoding state of
+.IR ber
+is not specified in any way. There is currently no way to learn what part of
+the string caused the validation to fail.
+.LP
 .SH NOTES
 Note that both read
 and list functionality are subsumed by these routines,
@@ -139,6 +157,7 @@ routine.
 .SH SEE ALSO
 .BR ldap (3),
 .BR ldap_result (3),
-.BR ldap_error (3)
+.BR ldap_error (3),
+.BR lber-types (3)
 .SH ACKNOWLEDGEMENTS
 .so ../Project
index 13aefe1d706f584046f99c7818f8e60629125eb1..94c8acaca68ec7c8177ec8cfe9555fbfc2982b91 100644 (file)
@@ -384,10 +384,6 @@ LDAP_F (int) ldap_pvt_sasl_generic_install LDAP_P(( Sockbuf *sb,
 LDAP_F (void) ldap_pvt_sasl_generic_remove LDAP_P(( Sockbuf *sb ));
 
 /* search.c */
-LDAP_F( int ) ldap_pvt_put_filter LDAP_P((
-       BerElement *ber,
-       const char *str ));
-
 LDAP_F( char * )
 ldap_pvt_find_wildcard LDAP_P((        const char *s ));
 
index 4b65750bf705399004af6e9cc251998287bee01b..62fcc7366d8466fdd557a4c587673bd7d099d46f 100644 (file)
@@ -34,6 +34,10 @@ ldap_init_fd LDAP_P((
        LDAP_CONST char *url,
        LDAP **ldp ));
 
+LDAP_F( int ) ldap_pvt_put_filter LDAP_P((
+       BerElement *ber,
+       const char *str ));
+
 LDAP_END_DECL
 
 #endif /* _OPENLDAP_H */