PKI_X509_EXTENSION * PKI_X509_CERT_get_extension_by_name(const PKI_X509_CERT *x, const char * name ) { PKI_OID *oid = NULL; if ( !x || !name ) return NULL; if ((oid = PKI_OID_new_text(name)) == NULL ) return NULL; return PKI_X509_CERT_get_extension_by_oid ( x, oid ); }
PKI_OID *PKI_OID_get( char *name ) { return PKI_OID_new_text ( name ); }