I have this list of digest + algorithms:
"ECDSA+SHA384:ECDSA+SHA512:RSA+SHA384:RSA+SHA512".
Is there any proper way to convert this string into a list of OpenSSL NIDs?
As a result I would like to have:
std::list<int> supportedSignatureAlgorithms = {
NID_ecdsa_with_SHA384, NID_ecdsa_with_SHA512,
NID_sha384WithRSAEncryption, NID_sha512WithRSAEncryption };
For NID values see (for example): https://boringssl.googlesource.com/boringssl/+/HEAD/include/openssl/nid.h