[Help-gnutls] Re: gnutls_x509_crt_get_dn() and similar functions
Martin Lambers
marlam at web.de
Wed Jan 5 23:54:40 CET 2005
On Wed, 05. Jan 2005, 20:12:27 +0100, Simon Josefsson wrote:
> > 2. I use gnutls_x509_get_dn_by_oid() to get certain fields from the DN:
> > size_t size = 0;
> > gnutls_x509_crt_get_dn_by_oid(cert, GNUTLS_OID_X520_COMMON_NAME,
> > 0, 0, NULL, &size);
> > This does not set size to the needed value at all.
> > Adding a line 426 to lib/x509/dn.c
> > *sizeof_buf = len;
> > fixes this problem for me, but I'm not sure that this is the proper
> > solution since I'm not familiar with the asn1_* functions.
>
> This appear to have already been solved in CVS, for the development
> branch. Try a daily snapshot, they are almost as stable as the proper
> releases.
gnutls-20050105 works nicely. Thanks!
> Let me know if you need it in 1.0 as well.
That would be nice, because I plan to use gnutls_x509_get_dn_by_oid() in
msmtp soon. But it's not really important; I can also update the
dependency to GnuTLS >= 1.1.23.
Thanks for your help!
Martin
More information about the Gnutls-help
mailing list