aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ssl-common.h
Commit message (Collapse)AuthorAgeFilesLines
* sign-file,extract-cert: avoid using deprecated ERR_get_error_line()Jan Stancek2024-09-201-15/+8
| | | | | | | | | | | | | | ERR_get_error_line() is deprecated since OpenSSL 3.0. Use ERR_peek_error_line() instead, and combine display_openssl_errors() and drain_openssl_errors() to a single function where parameter decides if it should consume errors silently. Signed-off-by: Jan Stancek <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Tested-by: R Nageswara Sastry <[email protected]> Reviewed-by: Neal Gompa <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
* sign-file,extract-cert: move common SSL helper functions to a headerJan Stancek2024-09-201-0/+39
Couple error handling helpers are repeated in both tools, so move them to a common header. Signed-off-by: Jan Stancek <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Tested-by: R Nageswara Sastry <[email protected]> Reviewed-by: Neal Gompa <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>