[Help-gnutls] gnutls_x509_crq_get_dn_by_oid
Daniel Stenberg
daniel at haxx.se
Fri Apr 22 14:22:51 CEST 2005
Hello!
Can you please clarify what gnutls_x509_crq_get_dn_by_oid() stores in the area
I point out to it with the 'buf' argument?
The docs says it should be "a pointer to a structure to hold the name", but
doesn't mention what structure or how such a struct should look like.
I currently use it like this:
size=sizeof(certbuf);
rc = gnutls_x509_crt_get_dn_by_oid(x509_cert, GNUTLS_OID_X520_COMMON_NAME,
0, /* the first and only one */
TRUE, /* give to me raw please */
certbuf,
&size);
... but I can't make sense from what it provides.
--
-=- Daniel Stenberg -=- http://daniel.haxx.se -=-
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
More information about the Gnutls-help
mailing list