streambinder / vpnc

IPsec (Cisco/Juniper) VPN concentrator client
https://davidepucci.it/doc/vpnc
GNU General Public License v2.0
37 stars 20 forks source link

openssl 3.0: dont use deprecated functions #43

Closed uweber closed 10 months ago

uweber commented 10 months ago

EVP_PKEY_get1_RSA, RSA_size and RSA_public_decrypt got deprecated in openssl 3.0, switch to EVP_PKEY_verify_recover

Code change mimics strongswan implementation from: src/libstrongswan/plugins/openssl/openssl_rsa_public_key.c

Also works with openssl 1.1.1n from debian buster

streambinder commented 10 months ago

Hi @uweber, thanks for your effort, highly appreciated! Please, take a look at the minor changes needed to land the changes :)

uweber commented 10 months ago

Hi @uweber, thanks for your effort, highly appreciated! Please, take a look at the minor changes needed to land the changes :)

Sorry, I have no idea whats wrong with the commit messages and the codespell error is not caused by me: 074e1ceb src/vpnc.c (Ralph Schmieder 2019-01-09 16:56:07 -0800 3155) /* we should ignore resent pakets here.

streambinder commented 10 months ago

So for commitlint rule, just make sure you follow the semantics of Conventional Commits. codespell rule, on the other hand, checks for mispelled words: in that case, pakets should be packets.

streambinder commented 10 months ago

Please, amend the commit message to comply to Conventional Commit and now rebase off https://github.com/streambinder/vpnc/commit/d20eec6371a17da428d951ac8e86ef898afc8ca9 👍🏻

streambinder commented 10 months ago

Thanks!