Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EVP_get_digestbyname : what is this ..?

I need to use this function

EVP_get_digestbyname(OBJ_nid2sn(i));

Whenever I call this function it returns NULL only .. how to fix this problem?

My value for i is 65 (RSA-SHA1).

Thanks

like image 696
Balamurugan Avatar asked Dec 27 '22 17:12

Balamurugan


1 Answers

Did you call

OpenSSL_add_all_algorithms();

first (ideally when initializing your application) ? This ensures that the algorithms and error messages get properly loaded. After that your call should succeed (cf. the doc on this subject).

like image 97
emboss Avatar answered Jan 06 '23 01:01

emboss