[Date Prev][Date Next] [Chronological] [Thread] [Top]

ber encoding

    I am writing a program using openldap client libraries. I want to
send a server control in ldap_search. Since, the control is not
supported by openldap, the client library does not have a function for
creating the control. I am trying to create the 'LDAPControl'
structure myself. The 'ldctl_value' member is of type 'struct berval'.
I want to populate this as per the specification in the control's
internet draft. I can encode using 'ber_printf'. This puts the info in
a 'BerElement' structure. How can I convert this to 'struct berval' ?


-Rahul S.