From: Anderson S. <no...@gi...> - 2019-02-15 06:11:49
|
Branch: refs/heads/master Home: https://github.com/OpenSC/libp11 Commit: e951b035a982a596c5bfd5e051950e52eeaba5d7 https://github.com/OpenSC/libp11/commit/e951b035a982a596c5bfd5e051950e52eeaba5d7 Author: Anderson Toshiyuki Sasaki <ans...@re...> Date: 2019-02-15 (Fri, 15 Feb 2019) Changed paths: M src/p11_ec.c Log Message: ----------- p11_ec: Try to get public key from the certificate When loading the private key and the corresponding public key is not available, try to find a matching certificate object and extract the public key from it. This allows ENGINE_load_private_key() to return an EVP_PKEY structure containing the public key if the public key object is not available, but the certificate object is. Signed-off-by: Anderson Toshiyuki Sasaki <ans...@re...> Commit: 5b5c0d5222c50bffebaf0944e3dab55f4ac7c8f6 https://github.com/OpenSC/libp11/commit/5b5c0d5222c50bffebaf0944e3dab55f4ac7c8f6 Author: Anderson Toshiyuki Sasaki <ans...@re...> Date: 2019-02-15 (Fri, 15 Feb 2019) Changed paths: M tests/Makefile.am A tests/check-privkey.c A tests/ec-check-privkey.softhsm A tests/ec-no-pubkey.sh Log Message: ----------- tests: Check EC public key loading from the certificate The test check if ENGINE_load_private_key() can get the public key from the certificate to fill the EVP_PKEY structure for EC keys when the public key object is not available. Signed-off-by: Anderson Toshiyuki Sasaki <ans...@re...> Commit: a75e41f324f3c52eec22b34c500e66e2d29e15b0 https://github.com/OpenSC/libp11/commit/a75e41f324f3c52eec22b34c500e66e2d29e15b0 Author: Anderson Toshiyuki Sasaki <ans...@re...> Date: 2019-02-15 (Fri, 15 Feb 2019) Changed paths: M src/p11_ec.c Log Message: ----------- p11_ec: Free BN which is duplicated internally The BN passed to EC_KEY_set_private_key() is duplicated internally; it must be freed to avoid memory leak. Signed-off-by: Anderson Toshiyuki Sasaki <ans...@re...> Compare: https://github.com/OpenSC/libp11/compare/57ca68ff67ef...a75e41f324f3 |