X509_get_signature_type() returns an int. I need to convert this to a string.
Asked
Active
Viewed 921 times
2 Answers
3
Signature algorithm string name I receive by this way:
X509 *certificate;
char alg[256];
...
OBJ_obj2txt(alg, sizeof(alg), certificate->sig_alg->algorithm, 0);
Parshin Dmitry
- 71
- 1
- 9
1
OBJ_nid2ln() perhaps? There's also OBJ_nid2sn() for a few signature types which have short names.
Plumenator
- 1,682
- 3
- 20
- 49