nqminds / edgesec

Secure router - reference implementation
https://edgesec.info
MIT License
6 stars 1 forks source link

Enable `OPENSSL_API_COMPAT` and remove all functions deprecated in OpenSSL 1.1.1 #539

Closed aloisklink closed 1 year ago

aloisklink commented 1 year ago

Define OPENSSL_API_COMPAT and OPENSSL_NO_DEPRECATED macros before including OpenSSL headers to prevent including OpenSSL functions that are deprecated since Since OpenSSL 1.1.1.

OpenSSL 1.1.1 is the minimum version of OpenSSL we support, as it's the version in:


This flag caught two functions that are deprecated in OpenSSL 1.1.1: X509_get_notBefore and X509_get_notAfter

I've replaced them with the similar X509_getm_notBefore and X509_getm_notAfter functions.

See man X509_getm_notBefore(3)

codecov[bot] commented 1 year ago

Codecov Report

Merging #539 (db17d7c) into main (0fc2000) will decrease coverage by 0.01%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #539      +/-   ##
==========================================
- Coverage   54.18%   54.17%   -0.01%     
==========================================
  Files         144      144              
  Lines       21034    21034              
==========================================
- Hits        11397    11395       -2     
- Misses       9637     9639       +2     
Impacted Files Coverage Δ
src/utils/cryptou.c 9.41% <0.00%> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.