]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/options.c
rename ldap_pvt_init_utils() to ldap_int_utils_init() and provide
[openldap] / libraries / libldap / options.c
index 2e4f64be861dcc52e3aa2e27af651704c43b560a..5831264e45d07db164cce13db2c4044eadaa7032 100644 (file)
@@ -231,6 +231,25 @@ ldap_get_option(
 
                return 0;
 
+        case LDAP_OPT_MATCH_STRING:
+               if(ld == NULL) {
+                       /* bad param */
+                       break;
+               } 
+
+               /*
+                * draft-ietf-ldapext-ldap-c-api-01 doesn't require
+                *      the client to have to free error strings, we do
+                */
+
+               if( ld->ld_matched == NULL ) {
+                       * (char **) outvalue = NULL;
+               } else {
+                       * (char **) outvalue = strdup(ld->ld_matched);
+               }
+
+               return 0;
+
        case LDAP_OPT_API_FEATURE_INFO: {
                        LDAPAPIFeatureInfo *info = (LDAPAPIFeatureInfo *) outvalue;
                        int i;