ber_get_string
if (ber_get_string(msg->dn, &dn) == -1)
if (ber_get_string(msg->body.res.diagmsg, &s) == -1)
ber_get_string(a, &s);
if (ber_get_string(ber, s) == -1)
int ber_get_string(struct ber_element *, char **);