dn.h (380B)
1 #ifndef KEE_DN_H_ 2 #define KEE_DN_H_ 3 4 #ifndef KEE_DN_DEFAULT_CAP 5 #define KEE_DN_DEFAULT_CAP 1024 6 #endif 7 8 struct kee_dn_t { 9 char *mem; 10 char *p; 11 char *cn; 12 char *c; 13 char *o; 14 char *uid; 15 char *dc; 16 }; 17 18 struct kee_dn_t* kee_dn_init(struct kee_dn_t *dn, size_t cap); 19 int kee_dn_from_str(struct kee_dn_t *dn, const char *s, size_t l); 20 void kee_dn_free(struct kee_dn_t *dn); 21 22 #endif 23