On Sat, Feb 16, 2008 at 11:25:38AM +0200, Nikos Mavrogiannopoulos wrote:
On Thursday 14 February 2008, Joe Orton wrote:
The CA dnames passed to the client-cert-retrieve function are raw DER
and hence can't be used by gnutls_x509_dn_get_rdn_ava().
This patch adds gnutls_x509_dn_import() which fills that gap, and
gnutls_x509_free_dn() which destroys the allocated structures.
The naming is slightly awkward because these don't fit the usual
init/import/deinit convention used by GnuTLS; let me know if you'd
prefer different names.
This is a nice addition, thank you. About the nameing I think
gnutls_x509_free_dn should be better named gnutls_x509_dn_deinit to be more
consistent with the other deinitialization functions. Would this be ok with
you?
Sure, no problem. Here's an updated patch: