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

TOMOYO Linux Cross Reference
Linux/include/linux/asn1.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/asn1.h (Version linux-6.12-rc7) and /include/linux/asn1.h (Version linux-4.13.16)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 /* ASN.1 BER/DER/CER encoding definitions           1 /* ASN.1 BER/DER/CER encoding 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 #ifndef _LINUX_ASN1_H                              12 #ifndef _LINUX_ASN1_H
  9 #define _LINUX_ASN1_H                              13 #define _LINUX_ASN1_H
 10                                                    14 
 11 /* Class */                                        15 /* Class */
 12 enum asn1_class {                                  16 enum asn1_class {
 13         ASN1_UNIV       = 0,    /* Universal *     17         ASN1_UNIV       = 0,    /* Universal */
 14         ASN1_APPL       = 1,    /* Application     18         ASN1_APPL       = 1,    /* Application */
 15         ASN1_CONT       = 2,    /* Context */      19         ASN1_CONT       = 2,    /* Context */
 16         ASN1_PRIV       = 3     /* Private */      20         ASN1_PRIV       = 3     /* Private */
 17 };                                                 21 };
 18 #define ASN1_CLASS_BITS 0xc0                       22 #define ASN1_CLASS_BITS 0xc0
 19                                                    23 
 20                                                    24 
 21 enum asn1_method {                                 25 enum asn1_method {
 22         ASN1_PRIM       = 0,    /* Primitive *     26         ASN1_PRIM       = 0,    /* Primitive */
 23         ASN1_CONS       = 1     /* Constructed     27         ASN1_CONS       = 1     /* Constructed */
 24 };                                                 28 };
 25 #define ASN1_CONS_BIT   0x20                       29 #define ASN1_CONS_BIT   0x20
 26                                                    30 
 27 /* Tag */                                          31 /* Tag */
 28 enum asn1_tag {                                    32 enum asn1_tag {
 29         ASN1_EOC        = 0,    /* End Of Cont     33         ASN1_EOC        = 0,    /* End Of Contents or N/A */
 30         ASN1_BOOL       = 1,    /* Boolean */      34         ASN1_BOOL       = 1,    /* Boolean */
 31         ASN1_INT        = 2,    /* Integer */      35         ASN1_INT        = 2,    /* Integer */
 32         ASN1_BTS        = 3,    /* Bit String      36         ASN1_BTS        = 3,    /* Bit String */
 33         ASN1_OTS        = 4,    /* Octet Strin     37         ASN1_OTS        = 4,    /* Octet String */
 34         ASN1_NULL       = 5,    /* Null */         38         ASN1_NULL       = 5,    /* Null */
 35         ASN1_OID        = 6,    /* Object Iden     39         ASN1_OID        = 6,    /* Object Identifier  */
 36         ASN1_ODE        = 7,    /* Object Desc     40         ASN1_ODE        = 7,    /* Object Description */
 37         ASN1_EXT        = 8,    /* External */     41         ASN1_EXT        = 8,    /* External */
 38         ASN1_REAL       = 9,    /* Real float      42         ASN1_REAL       = 9,    /* Real float */
 39         ASN1_ENUM       = 10,   /* Enumerated      43         ASN1_ENUM       = 10,   /* Enumerated */
 40         ASN1_EPDV       = 11,   /* Embedded PD     44         ASN1_EPDV       = 11,   /* Embedded PDV */
 41         ASN1_UTF8STR    = 12,   /* UTF8 String     45         ASN1_UTF8STR    = 12,   /* UTF8 String */
 42         ASN1_RELOID     = 13,   /* Relative OI     46         ASN1_RELOID     = 13,   /* Relative OID */
 43         /* 14 - Reserved */                        47         /* 14 - Reserved */
 44         /* 15 - Reserved */                        48         /* 15 - Reserved */
 45         ASN1_SEQ        = 16,   /* Sequence an     49         ASN1_SEQ        = 16,   /* Sequence and Sequence of */
 46         ASN1_SET        = 17,   /* Set and Set     50         ASN1_SET        = 17,   /* Set and Set of */
 47         ASN1_NUMSTR     = 18,   /* Numerical S     51         ASN1_NUMSTR     = 18,   /* Numerical String */
 48         ASN1_PRNSTR     = 19,   /* Printable S     52         ASN1_PRNSTR     = 19,   /* Printable String */
 49         ASN1_TEXSTR     = 20,   /* T61 String      53         ASN1_TEXSTR     = 20,   /* T61 String / Teletext String */
 50         ASN1_VIDSTR     = 21,   /* Videotex St     54         ASN1_VIDSTR     = 21,   /* Videotex String */
 51         ASN1_IA5STR     = 22,   /* IA5 String      55         ASN1_IA5STR     = 22,   /* IA5 String */
 52         ASN1_UNITIM     = 23,   /* Universal T     56         ASN1_UNITIM     = 23,   /* Universal Time */
 53         ASN1_GENTIM     = 24,   /* General Tim     57         ASN1_GENTIM     = 24,   /* General Time */
 54         ASN1_GRASTR     = 25,   /* Graphic Str     58         ASN1_GRASTR     = 25,   /* Graphic String */
 55         ASN1_VISSTR     = 26,   /* Visible Str     59         ASN1_VISSTR     = 26,   /* Visible String */
 56         ASN1_GENSTR     = 27,   /* General Str     60         ASN1_GENSTR     = 27,   /* General String */
 57         ASN1_UNISTR     = 28,   /* Universal S     61         ASN1_UNISTR     = 28,   /* Universal String */
 58         ASN1_CHRSTR     = 29,   /* Character S     62         ASN1_CHRSTR     = 29,   /* Character String */
 59         ASN1_BMPSTR     = 30,   /* BMP String      63         ASN1_BMPSTR     = 30,   /* BMP String */
 60         ASN1_LONG_TAG   = 31    /* Long form t     64         ASN1_LONG_TAG   = 31    /* Long form tag */
 61 };                                                 65 };
 62                                                    66 
 63 #define ASN1_INDEFINITE_LENGTH 0x80                67 #define ASN1_INDEFINITE_LENGTH 0x80
 64                                                    68 
 65 #endif /* _LINUX_ASN1_H */                         69 #endif /* _LINUX_ASN1_H */
 66                                                    70 

~ [ 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