[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnutls] gnutls_x509_crq_get_dn_by_oid
From: |
Daniel Stenberg |
Subject: |
[Help-gnutls] gnutls_x509_crq_get_dn_by_oid |
Date: |
Fri, 22 Apr 2005 14:22:51 +0200 (CEST) |
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
- [Help-gnutls] gnutls_x509_crq_get_dn_by_oid,
Daniel Stenberg <=