** libgnutls: Corrected memory leak in DH parameter
generation.
+** libgnutls: Added gnutls_x509_dn_oid_name() to
+return a descriptive name of a DN OID.
+
** API and ABI modifications:
gnutls_pubkey_encrypt_data: Added
-
+gnutls_x509_dn_oid_name: Added
* Version 3.0.11 (released 2012-01-06)
int gnutls_x509_dn_oid_known (const char *oid);
+ const char* gnutls_x509_dn_oid_name (const char *oid);
+
/* Read extensions by OID. */
int gnutls_x509_crt_get_extension_oid (gnutls_x509_crt_t cert, int indx,
void *oid, size_t * oid_size);
gnutls_priority_get_cipher_suite_index;
gnutls_random_art;
gnutls_pubkey_encrypt_data;
+ gnutls_x509_dn_oid_name;
} GNUTLS_2_12;
GNUTLS_PRIVATE {
return 0;
}
-const char *
-_gnutls_x509_oid2ldap_string (const char *oid)
+/**
+ * gnutls_x509_dn_oid_name:
+ * @oid: holds an Object Identifier in a null terminated string
+ *
+ * This function will return the name of a known DN OID.
+ *
+ * Returns: A null terminated string or NULL otherwise.
+ *
+ * Since: 3.0.0
+ **/
+const char*
+gnutls_x509_dn_oid_name (const char *oid)
{
int i = 0;
const char *_gnutls_x509_oid2asn_string (const char *oid);
-const char *_gnutls_x509_oid2ldap_string (const char *OID);
-
int _gnutls_x509_oid_data_choice (const char *OID);
int _gnutls_x509_oid_data_printable (const char *OID);
{
const char *ret;
- ret = _gnutls_x509_oid2ldap_string (oid);
+ ret = gnutls_x509_dn_oid_name (oid);
if (ret)
return ret;