diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-14 11:42:47 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-14 11:42:47 +0000 |
commit | c59d3397e626b355b3e892eff7970efcf21c9824 (patch) | |
tree | 3211c410196e3fcf805c8cb9b40a1372cae96dc3 | |
parent | 798ef89d0577643ab03ae72f3dca9634ac63b148 (diff) | |
download | gnutls-c59d3397e626b355b3e892eff7970efcf21c9824.tar.gz |
added gnutls_x509_oid_known() to report known OIDs.
-rw-r--r-- | lib/x509/x509_write.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/x509/x509_write.c b/lib/x509/x509_write.c index 64cc5af304..ab75a0a66b 100644 --- a/lib/x509/x509_write.c +++ b/lib/x509/x509_write.c @@ -45,7 +45,7 @@ static void disable_optional_stuff( gnutls_x509_crt cert); /** * gnutls_x509_crt_set_dn_by_oid - This function will set the Certificate request subject's distinguished name * @crt: should contain a gnutls_x509_crt structure - * @oid: holds an Object Identified in null terminated string + * @oid: holds an Object Identifier in a null terminated string * @name: a pointer to the name * @sizeof_name: holds the size of 'name' * @@ -53,7 +53,10 @@ static void disable_optional_stuff( gnutls_x509_crt cert); * by the given OID. * * Some helper macros with popular OIDs can be found in gnutls/x509.h - * With this function you can only set the known OIDs. + * With this function you can only set the known OIDs. You can test + * for known OIDs using gnutls_x509_oid_known(). For OIDs that are + * not known (by gnutls) you should properly DER encode your data before + * calling this function. * * Returns 0 on success. * @@ -72,7 +75,7 @@ int gnutls_x509_crt_set_dn_by_oid(gnutls_x509_crt crt, const char* oid, /** * gnutls_x509_crt_set_issuer_dn_by_oid - This function will set the Certificate request issuer's distinguished name * @crt: should contain a gnutls_x509_crt structure - * @oid: holds an Object Identified in null terminated string + * @oid: holds an Object Identifier in a null terminated string * @name: a pointer to the name * @sizeof_name: holds the size of 'name' * @@ -80,7 +83,10 @@ int gnutls_x509_crt_set_dn_by_oid(gnutls_x509_crt crt, const char* oid, * by the given OID. * * Some helper macros with popular OIDs can be found in gnutls/x509.h - * With this function you can only set the known OIDs. + * With this function you can only set the known OIDs. You can test + * for known OIDs using gnutls_x509_oid_known(). For OIDs that are + * not known (by gnutls) you should properly DER encode your data before + * calling this function. * * Returns 0 on success. * |