Home
last modified time | relevance | path

Searched refs:x509_name (Results 1 – 2 of 2) sorted by relevance

/system/keymaster/km_openssl/
Dcertificate_utils.cpp67 X509_NAME_Ptr x509_name(X509_NAME_new()); in make_name_from_str() local
68 if (!x509_name.get()) { in make_name_from_str()
71 if (!X509_NAME_add_entry_by_txt(x509_name.get(), // in make_name_from_str()
79 *name_out = move(x509_name); in make_name_from_str()
87 X509_NAME_Ptr x509_name(d2i_X509_NAME(nullptr, &p, name.data_length)); in make_name_from_der() local
88 if (!x509_name.get()) { in make_name_from_der()
92 *name_out = move(x509_name); in make_name_from_der()
/system/security/keystore2/src/crypto/
Dcertificate_utils.cpp58 X509_NAME_Ptr x509_name(d2i_X509_NAME(nullptr, &p, name->get().size())); in makeCommonName() local
59 if (!x509_name) { in makeCommonName()
62 return x509_name; in makeCommonName()
65 X509_NAME_Ptr x509_name(X509_NAME_new()); in makeCommonName() local
66 if (!x509_name) { in makeCommonName()
69 if (!X509_NAME_add_entry_by_txt(x509_name.get(), "CN", MBSTRING_ASC, in makeCommonName()
74 return x509_name; in makeCommonName()