[prev in list] [next in list] [prev in thread] [next in thread]
List: opensc-commits
Subject: [Opensc-commits] [OpenSC/libp11] e951b0: p11_ec: Try to get public key from the certificate
From: Anderson Sasaki <noreply () github ! com>
Date: 2019-02-15 6:11:41
Message-ID: OpenSC/libp11/push/refs/heads/master/57ca68-a75e41 () github ! com
[Download RAW message or body]
Branch: refs/heads/master
Home: https://github.com/OpenSC/libp11
Commit: e951b035a982a596c5bfd5e051950e52eeaba5d7
https://github.com/OpenSC/libp11/commit/e951b035a982a596c5bfd5e051950e52eeaba5d7
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
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 <ansasaki@redhat.com>
Commit: 5b5c0d5222c50bffebaf0944e3dab55f4ac7c8f6
https://github.com/OpenSC/libp11/commit/5b5c0d5222c50bffebaf0944e3dab55f4ac7c8f6
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
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 <ansasaki@redhat.com>
Commit: a75e41f324f3c52eec22b34c500e66e2d29e15b0
https://github.com/OpenSC/libp11/commit/a75e41f324f3c52eec22b34c500e66e2d29e15b0
Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
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 <ansasaki@redhat.com>
Compare: https://github.com/OpenSC/libp11/compare/57ca68ff67ef...a75e41f324f3
_______________________________________________
Opensc-commits mailing list
Opensc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensc-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic