标签: openssl x509
如何将字符串/字符*转换为X509_NAME *?
const char* issuer_c = issuerstr.c_str(); X509_NAME* issuerName = d2i_X509_NAME(NULL, (const unsigned char**)&issuer_c, -1);
即使在调用d2i_X509_NAME后,颁发者名称也为NULL。 我认为这个d2i方法仅适用于二进制数据。那么如何将字符串转换为X509_NAME?
d2i_X509_NAME
d2i