aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libldapschema/libldapschema.sym1
-rw-r--r--lib/libldapschema/lspec.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/libldapschema/libldapschema.sym b/lib/libldapschema/libldapschema.sym
index 6f22518..dc1f0d9 100644
--- a/lib/libldapschema/libldapschema.sym
+++ b/lib/libldapschema/libldapschema.sym
@@ -90,6 +90,7 @@ ldapschema_spec_abnf
90ldapschema_spec_field 90ldapschema_spec_field
91ldapschema_spec_list 91ldapschema_spec_list
92ldapschema_spec_search 92ldapschema_spec_search
93ldapschema_type_name
93# output functions 94# output functions
94ldapschema_print 95ldapschema_print
95ldapschema_printall 96ldapschema_printall
diff --git a/lib/libldapschema/lspec.c b/lib/libldapschema/lspec.c
index bdaadcb..ece78fd 100644
--- a/lib/libldapschema/lspec.c
+++ b/lib/libldapschema/lspec.c
@@ -250,4 +250,19 @@ const LDAPSchemaSpec * ldapschema_spec_search(const char * oid)
250} 250}
251 251
252 252
253const char * ldapschema_type_name(uint32_t type)
254{
255 switch(type)
256 {
257 case LDAPSCHEMA_ATTRIBUTETYPE: return("attributeType");
258 case LDAPSCHEMA_MATCHINGRULE: return("matchingRule");
259 case LDAPSCHEMA_OBJECTCLASS: return("objectClass");
260 case LDAPSCHEMA_SYNTAX: return("ldapSyntax");
261 default:
262 break;
263 };
264 return(NULL);
265}
266
267
253/* end of source file */ 268/* end of source file */