1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* X.509 certificate parser internal definitio 3 * 4 * Copyright (C) 2012 Red Hat, Inc. All Rights 5 * Written by David Howells (dhowells@redhat.c 6 */ 7 8 #include <linux/cleanup.h> 9 #include <linux/time.h> 10 #include <crypto/public_key.h> 11 #include <keys/asymmetric-type.h> 12 13 struct x509_certificate { 14 struct x509_certificate *next; 15 struct x509_certificate *signer; 16 struct public_key *pub; 17 struct public_key_signature *sig; 18 char *issuer; 19 char *subject; 20 struct asymmetric_key_id *id; 21 struct asymmetric_key_id *skid; 22 time64_t valid_from; 23 time64_t valid_to; 24 const void *tbs; 25 unsigned tbs_size; 26 unsigned raw_sig_size; 27 const void *raw_sig; 28 const void *raw_serial; 29 unsigned raw_serial_size; 30 unsigned raw_issuer_size; 31 const void *raw_issuer; 32 const void *raw_subject; 33 unsigned raw_subject_size; 34 unsigned raw_skid_size; 35 const void *raw_skid; 36 unsigned index; 37 bool seen; 38 bool verified; 39 bool self_signed; 40 bool unsupported_sig; 41 bool blacklisted; 42 }; 43 44 /* 45 * x509_cert_parser.c 46 */ 47 extern void x509_free_certificate(struct x509_ 48 DEFINE_FREE(x509_free_certificate, struct x509 49 if (!IS_ERR(_T)) x509_free_certifi 50 extern struct x509_certificate *x509_cert_pars 51 extern int x509_decode_time(time64_t *_t, siz 52 unsigned char tag, 53 const unsigned cha 54 55 /* 56 * x509_public_key.c 57 */ 58 extern int x509_get_sig_params(struct x509_cer 59 extern int x509_check_for_self_signed(struct x 60
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.