~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/crypto/asymmetric_keys/x509_parser.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /crypto/asymmetric_keys/x509_parser.h (Version linux-6.11.5) and /crypto/asymmetric_keys/x509_parser.h (Version linux-4.13.16)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 /* X.509 certificate parser internal definitio      1 /* X.509 certificate parser internal definitions
  3  *                                                  2  *
  4  * Copyright (C) 2012 Red Hat, Inc. All Rights      3  * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
  5  * Written by David Howells (dhowells@redhat.c      4  * Written by David Howells (dhowells@redhat.com)
                                                   >>   5  *
                                                   >>   6  * This program is free software; you can redistribute it and/or
                                                   >>   7  * modify it under the terms of the GNU General Public Licence
                                                   >>   8  * as published by the Free Software Foundation; either version
                                                   >>   9  * 2 of the Licence, or (at your option) any later version.
  6  */                                                10  */
  7                                                    11 
  8 #include <linux/cleanup.h>                     << 
  9 #include <linux/time.h>                            12 #include <linux/time.h>
 10 #include <crypto/public_key.h>                     13 #include <crypto/public_key.h>
 11 #include <keys/asymmetric-type.h>                  14 #include <keys/asymmetric-type.h>
 12                                                    15 
 13 struct x509_certificate {                          16 struct x509_certificate {
 14         struct x509_certificate *next;             17         struct x509_certificate *next;
 15         struct x509_certificate *signer;           18         struct x509_certificate *signer;        /* Certificate that signed this one */
 16         struct public_key *pub;                    19         struct public_key *pub;                 /* Public key details */
 17         struct public_key_signature *sig;          20         struct public_key_signature *sig;       /* Signature parameters */
 18         char            *issuer;                   21         char            *issuer;                /* Name of certificate issuer */
 19         char            *subject;                  22         char            *subject;               /* Name of certificate subject */
 20         struct asymmetric_key_id *id;              23         struct asymmetric_key_id *id;           /* Issuer + Serial number */
 21         struct asymmetric_key_id *skid;            24         struct asymmetric_key_id *skid;         /* Subject + subjectKeyId (optional) */
 22         time64_t        valid_from;                25         time64_t        valid_from;
 23         time64_t        valid_to;                  26         time64_t        valid_to;
 24         const void      *tbs;                      27         const void      *tbs;                   /* Signed data */
 25         unsigned        tbs_size;                  28         unsigned        tbs_size;               /* Size of signed data */
 26         unsigned        raw_sig_size;          !!  29         unsigned        raw_sig_size;           /* Size of sigature */
 27         const void      *raw_sig;                  30         const void      *raw_sig;               /* Signature data */
 28         const void      *raw_serial;               31         const void      *raw_serial;            /* Raw serial number in ASN.1 */
 29         unsigned        raw_serial_size;           32         unsigned        raw_serial_size;
 30         unsigned        raw_issuer_size;           33         unsigned        raw_issuer_size;
 31         const void      *raw_issuer;               34         const void      *raw_issuer;            /* Raw issuer name in ASN.1 */
 32         const void      *raw_subject;              35         const void      *raw_subject;           /* Raw subject name in ASN.1 */
 33         unsigned        raw_subject_size;          36         unsigned        raw_subject_size;
 34         unsigned        raw_skid_size;             37         unsigned        raw_skid_size;
 35         const void      *raw_skid;                 38         const void      *raw_skid;              /* Raw subjectKeyId in ASN.1 */
 36         unsigned        index;                     39         unsigned        index;
 37         bool            seen;                      40         bool            seen;                   /* Infinite recursion prevention */
 38         bool            verified;                  41         bool            verified;
 39         bool            self_signed;               42         bool            self_signed;            /* T if self-signed (check unsupported_sig too) */
                                                   >>  43         bool            unsupported_key;        /* T if key uses unsupported crypto */
 40         bool            unsupported_sig;           44         bool            unsupported_sig;        /* T if signature uses unsupported crypto */
 41         bool            blacklisted;               45         bool            blacklisted;
 42 };                                                 46 };
 43                                                    47 
 44 /*                                                 48 /*
 45  * x509_cert_parser.c                              49  * x509_cert_parser.c
 46  */                                                50  */
 47 extern void x509_free_certificate(struct x509_     51 extern void x509_free_certificate(struct x509_certificate *cert);
 48 DEFINE_FREE(x509_free_certificate, struct x509 << 
 49             if (!IS_ERR(_T)) x509_free_certifi << 
 50 extern struct x509_certificate *x509_cert_pars     52 extern struct x509_certificate *x509_cert_parse(const void *data, size_t datalen);
 51 extern int x509_decode_time(time64_t *_t,  siz     53 extern int x509_decode_time(time64_t *_t,  size_t hdrlen,
 52                             unsigned char tag,     54                             unsigned char tag,
 53                             const unsigned cha     55                             const unsigned char *value, size_t vlen);
 54                                                    56 
 55 /*                                                 57 /*
 56  * x509_public_key.c                               58  * x509_public_key.c
 57  */                                                59  */
 58 extern int x509_get_sig_params(struct x509_cer     60 extern int x509_get_sig_params(struct x509_certificate *cert);
 59 extern int x509_check_for_self_signed(struct x     61 extern int x509_check_for_self_signed(struct x509_certificate *cert);
 60                                                    62 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php