]> git.proxmox.com Git - swtpm.git/commit
swtpm_cert: Use gnutls_x509_crt_get_subject_key_id API call for subj keyId
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 22 Oct 2019 15:06:32 +0000 (11:06 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 22 Oct 2019 16:39:29 +0000 (12:39 -0400)
commit132bbf7b7afd234f8aa88831b108b8b8f773c535
tree7902e25f44a17178e9666080f3ab206226d30aa0
parent36bfbb743255292295ab8a3f452499bfcf17ee8d
swtpm_cert: Use gnutls_x509_crt_get_subject_key_id API call for subj keyId

Use the gnutls_x509_crt_get_subject_key_id() API call to get the subject
key ID of the signer's certificate rather than gnutls_x509_crt_get_key_id().
The latter returns the same result most of the time but there are instances
when this is not the case and the returned result is wrong.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/swtpm_cert/ek-cert.c