diff options
author | David Howells <dhowells@redhat.com> | 2016-04-06 11:13:33 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-06 11:13:33 -0400 |
commit | 77d0910d153a7946df17cc15d3f423e534345f65 (patch) | |
tree | 2b32d94de42a5a2003b5bd5966e3e73f78d04934 /crypto/asymmetric_keys/x509_parser.h | |
parent | a022ec02691cf68e1fe237d5f79d54aa95446cc6 (diff) |
X.509: Retain the key verification data
Retain the key verification data (ie. the struct public_key_signature)
including the digest and the key identifiers.
Note that this means that we need to take a separate copy of the digest in
x509_get_sig_params() rather than lumping it in with the crypto layer data.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'crypto/asymmetric_keys/x509_parser.h')
-rw-r--r-- | crypto/asymmetric_keys/x509_parser.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/asymmetric_keys/x509_parser.h b/crypto/asymmetric_keys/x509_parser.h index dbeed6018e63..26a4d83e4e6d 100644 --- a/crypto/asymmetric_keys/x509_parser.h +++ b/crypto/asymmetric_keys/x509_parser.h | |||
@@ -17,13 +17,11 @@ struct x509_certificate { | |||
17 | struct x509_certificate *next; | 17 | struct x509_certificate *next; |
18 | struct x509_certificate *signer; /* Certificate that signed this one */ | 18 | struct x509_certificate *signer; /* Certificate that signed this one */ |
19 | struct public_key *pub; /* Public key details */ | 19 | struct public_key *pub; /* Public key details */ |
20 | struct public_key_signature sig; /* Signature parameters */ | 20 | struct public_key_signature *sig; /* Signature parameters */ |
21 | char *issuer; /* Name of certificate issuer */ | 21 | char *issuer; /* Name of certificate issuer */ |
22 | char *subject; /* Name of certificate subject */ | 22 | char *subject; /* Name of certificate subject */ |
23 | struct asymmetric_key_id *id; /* Issuer + Serial number */ | 23 | struct asymmetric_key_id *id; /* Issuer + Serial number */ |
24 | struct asymmetric_key_id *skid; /* Subject + subjectKeyId (optional) */ | 24 | struct asymmetric_key_id *skid; /* Subject + subjectKeyId (optional) */ |
25 | struct asymmetric_key_id *akid_id; /* CA AuthKeyId matching ->id (optional) */ | ||
26 | struct asymmetric_key_id *akid_skid; /* CA AuthKeyId matching ->skid (optional) */ | ||
27 | time64_t valid_from; | 25 | time64_t valid_from; |
28 | time64_t valid_to; | 26 | time64_t valid_to; |
29 | const void *tbs; /* Signed data */ | 27 | const void *tbs; /* Signed data */ |