Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
wolfssl/openssl/asn1.h@15:117db924cf7c, 2018-08-18 (annotated)
- Committer:
- wolfSSL
- Date:
- Sat Aug 18 22:20:43 2018 +0000
- Revision:
- 15:117db924cf7c
wolfSSL 3.15.3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolfSSL | 15:117db924cf7c | 1 | /* asn1.h |
wolfSSL | 15:117db924cf7c | 2 | * |
wolfSSL | 15:117db924cf7c | 3 | * Copyright (C) 2006-2017 wolfSSL Inc. |
wolfSSL | 15:117db924cf7c | 4 | * |
wolfSSL | 15:117db924cf7c | 5 | * This file is part of wolfSSL. |
wolfSSL | 15:117db924cf7c | 6 | * |
wolfSSL | 15:117db924cf7c | 7 | * wolfSSL is free software; you can redistribute it and/or modify |
wolfSSL | 15:117db924cf7c | 8 | * it under the terms of the GNU General Public License as published by |
wolfSSL | 15:117db924cf7c | 9 | * the Free Software Foundation; either version 2 of the License, or |
wolfSSL | 15:117db924cf7c | 10 | * (at your option) any later version. |
wolfSSL | 15:117db924cf7c | 11 | * |
wolfSSL | 15:117db924cf7c | 12 | * wolfSSL is distributed in the hope that it will be useful, |
wolfSSL | 15:117db924cf7c | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
wolfSSL | 15:117db924cf7c | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wolfSSL | 15:117db924cf7c | 15 | * GNU General Public License for more details. |
wolfSSL | 15:117db924cf7c | 16 | * |
wolfSSL | 15:117db924cf7c | 17 | * You should have received a copy of the GNU General Public License |
wolfSSL | 15:117db924cf7c | 18 | * along with this program; if not, write to the Free Software |
wolfSSL | 15:117db924cf7c | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA |
wolfSSL | 15:117db924cf7c | 20 | */ |
wolfSSL | 15:117db924cf7c | 21 | |
wolfSSL | 15:117db924cf7c | 22 | /* asn1.h for openssl */ |
wolfSSL | 15:117db924cf7c | 23 | |
wolfSSL | 15:117db924cf7c | 24 | #ifndef WOLFSSL_ASN1_H_ |
wolfSSL | 15:117db924cf7c | 25 | #define WOLFSSL_ASN1_H_ |
wolfSSL | 15:117db924cf7c | 26 | |
wolfSSL | 15:117db924cf7c | 27 | #include <wolfssl/openssl/ssl.h> |
wolfSSL | 15:117db924cf7c | 28 | |
wolfSSL | 15:117db924cf7c | 29 | #define ASN1_STRING_new wolfSSL_ASN1_STRING_type_new |
wolfSSL | 15:117db924cf7c | 30 | #define ASN1_STRING_type_new wolfSSL_ASN1_STRING_type_new |
wolfSSL | 15:117db924cf7c | 31 | #define ASN1_STRING_set wolfSSL_ASN1_STRING_set |
wolfSSL | 15:117db924cf7c | 32 | #define ASN1_STRING_free wolfSSL_ASN1_STRING_free |
wolfSSL | 15:117db924cf7c | 33 | |
wolfSSL | 15:117db924cf7c | 34 | #define V_ASN1_OCTET_STRING 0x04 /* tag for ASN1_OCTET_STRING */ |
wolfSSL | 15:117db924cf7c | 35 | #define V_ASN1_NEG 0x100 |
wolfSSL | 15:117db924cf7c | 36 | #define V_ASN1_NEG_INTEGER (2 | V_ASN1_NEG) |
wolfSSL | 15:117db924cf7c | 37 | #define V_ASN1_NEG_ENUMERATED (10 | V_ASN1_NEG) |
wolfSSL | 15:117db924cf7c | 38 | |
wolfSSL | 15:117db924cf7c | 39 | /* Type for ASN1_print_ex */ |
wolfSSL | 15:117db924cf7c | 40 | # define ASN1_STRFLGS_ESC_2253 1 |
wolfSSL | 15:117db924cf7c | 41 | # define ASN1_STRFLGS_ESC_CTRL 2 |
wolfSSL | 15:117db924cf7c | 42 | # define ASN1_STRFLGS_ESC_MSB 4 |
wolfSSL | 15:117db924cf7c | 43 | # define ASN1_STRFLGS_ESC_QUOTE 8 |
wolfSSL | 15:117db924cf7c | 44 | # define ASN1_STRFLGS_UTF8_CONVERT 0x10 |
wolfSSL | 15:117db924cf7c | 45 | # define ASN1_STRFLGS_IGNORE_TYPE 0x20 |
wolfSSL | 15:117db924cf7c | 46 | # define ASN1_STRFLGS_SHOW_TYPE 0x40 |
wolfSSL | 15:117db924cf7c | 47 | # define ASN1_STRFLGS_DUMP_ALL 0x80 |
wolfSSL | 15:117db924cf7c | 48 | # define ASN1_STRFLGS_DUMP_UNKNOWN 0x100 |
wolfSSL | 15:117db924cf7c | 49 | # define ASN1_STRFLGS_DUMP_DER 0x200 |
wolfSSL | 15:117db924cf7c | 50 | # define ASN1_STRFLGS_RFC2253 (ASN1_STRFLGS_ESC_2253 | \ |
wolfSSL | 15:117db924cf7c | 51 | ASN1_STRFLGS_ESC_CTRL | \ |
wolfSSL | 15:117db924cf7c | 52 | ASN1_STRFLGS_ESC_MSB | \ |
wolfSSL | 15:117db924cf7c | 53 | ASN1_STRFLGS_UTF8_CONVERT | \ |
wolfSSL | 15:117db924cf7c | 54 | ASN1_STRFLGS_DUMP_UNKNOWN | \ |
wolfSSL | 15:117db924cf7c | 55 | ASN1_STRFLGS_DUMP_DER) |
wolfSSL | 15:117db924cf7c | 56 | #endif /* WOLFSSL_ASN1_H_ */ |
wolfSSL | 15:117db924cf7c | 57 |