int gnutls_x509_crt_get_key_usage( gnutls_x509_crt cert, unsigned int* key_usage,
unsigned int* critical);
-int gnutls_x509_oid_known(const char* oid);
+int gnutls_x509_dn_oid_known(const char* oid);
/* key_usage will be an OR of the following values:
*/
}
/**
- * gnutls_x509_oid_known - This function will return true if the given OID is known
+ * gnutls_x509_dn_oid_known - This function will return true if the given OID is known
* @oid: holds an Object Identifier in a null terminated string
*
- * This function will inform about known OIDs. This is useful since functions
+ * This function will inform about known DN OIDs. This is useful since functions
* like gnutls_x509_crt_set_dn_by_oid() use the information on known
* OIDs to properly encode their input. Object Identifiers that are not
* known are not encoded by these functions, and their input is stored directly
* Returns 1 on known OIDs and 0 otherwise.
*
**/
-int gnutls_x509_oid_known( const char* oid)
+int gnutls_x509_dn_oid_known( const char* oid)
{
int i = 0;
* by the given OID. The output will be encoded as described in RFC2253.
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
+ * If raw flag is zero, this function will only return known OIDs as text. Other OIDs
+ * will be DER encoded, as described in RFC2253 -- in hex format with a '#' prefix.
+ * You can check about known OIDs using gnutls_x509_dn_oid_known().
*
* If buf is null then only the size will be filled.
*
* by the given OID. The output will be encoded as described in RFC2253.
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
- * This function will only return known OIDs as text. For other OIDs the output
+ * If raw flag is zero, this function will only return known OIDs as text. Other OIDs
* will be DER encoded, as described in RFC2253 -- in hex format with a '#' prefix.
- * You can check about known OIDs using gnutls_x509_oid_known().
+ * You can check about known OIDs using gnutls_x509_dn_oid_known().
*
* If buf is null then only the size will be filled.
*
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
* 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
+ * for known OIDs using gnutls_x509_dn_oid_known(). For OIDs that are
* not known (by gnutls) you should properly DER encode your data, and
* call this function with raw_flag set.
*
* by the given OID. The output will be encoded as described in RFC2253.
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
- * This function will only return known OIDs as text. For other OIDs the output
+ * If raw flag is zero, this function will only return known OIDs as text. Other OIDs
* will be DER encoded, as described in RFC2253 -- in hex format with a '#' prefix.
- * You can check about known OIDs using gnutls_x509_oid_known().
+ * You can check about known OIDs using gnutls_x509_dn_oid_known().
*
* If buf is null then only the size will be filled.
*
* by the given OID.
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
- * This function will only return known OIDs as text. For other OIDs the output
+ * If raw flag is zero, this function will only return known OIDs as text. Other OIDs
* will be DER encoded, as described in RFC2253 -- in hex format with a '#' prefix.
- * You can check about known OIDs using gnutls_x509_oid_known().
+ * You can check about known OIDs using gnutls_x509_dn_oid_known().
*
* If buf is null then only the size will be filled.
*
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
* 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
+ * for known OIDs using gnutls_x509_dn_oid_known(). For OIDs that are
* not known (by gnutls) you should properly DER encode your data, and
* call this function with raw_flag set.
*
*
* Some helper macros with popular OIDs can be found in gnutls/x509.h
* 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
+ * for known OIDs using gnutls_x509_dn_oid_known(). For OIDs that are
* not known (by gnutls) you should properly DER encode your data, and
* call this function with raw_flag set.
*