003 File Manager
Current Path:
/usr/src/contrib/wpa/src/tls
usr
/
src
/
contrib
/
wpa
/
src
/
tls
/
📁
..
📄
asn1.c
(5.23 KB)
📄
asn1.h
(2.36 KB)
📄
bignum.c
(5.36 KB)
📄
bignum.h
(1.13 KB)
📄
libtommath.c
(76.2 KB)
📄
pkcs1.c
(7.28 KB)
📄
pkcs1.h
(872 B)
📄
pkcs5.c
(16.32 KB)
📄
pkcs5.h
(404 B)
📄
pkcs8.c
(5.09 KB)
📄
pkcs8.h
(436 B)
📄
rsa.c
(8.76 KB)
📄
rsa.h
(770 B)
📄
tlsv1_client.c
(23.34 KB)
📄
tlsv1_client.h
(2.39 KB)
📄
tlsv1_client_i.h
(2.73 KB)
📄
tlsv1_client_ocsp.c
(23.12 KB)
📄
tlsv1_client_read.c
(39.87 KB)
📄
tlsv1_client_write.c
(25.62 KB)
📄
tlsv1_common.c
(14.73 KB)
📄
tlsv1_common.h
(9.52 KB)
📄
tlsv1_cred.c
(32.12 KB)
📄
tlsv1_cred.h
(1.36 KB)
📄
tlsv1_record.c
(13.41 KB)
📄
tlsv1_record.h
(1.89 KB)
📄
tlsv1_server.c
(23.52 KB)
📄
tlsv1_server.h
(2.23 KB)
📄
tlsv1_server_i.h
(2.29 KB)
📄
tlsv1_server_read.c
(34.19 KB)
📄
tlsv1_server_write.c
(27.71 KB)
📄
x509v3.c
(53.69 KB)
📄
x509v3.h
(4.73 KB)
Editing: asn1.h
/* * ASN.1 DER parsing * Copyright (c) 2006, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef ASN1_H #define ASN1_H #define ASN1_TAG_EOC 0x00 /* not used with DER */ #define ASN1_TAG_BOOLEAN 0x01 #define ASN1_TAG_INTEGER 0x02 #define ASN1_TAG_BITSTRING 0x03 #define ASN1_TAG_OCTETSTRING 0x04 #define ASN1_TAG_NULL 0x05 #define ASN1_TAG_OID 0x06 #define ASN1_TAG_OBJECT_DESCRIPTOR 0x07 /* not yet parsed */ #define ASN1_TAG_EXTERNAL 0x08 /* not yet parsed */ #define ASN1_TAG_REAL 0x09 /* not yet parsed */ #define ASN1_TAG_ENUMERATED 0x0A /* not yet parsed */ #define ASN1_TAG_EMBEDDED_PDV 0x0B /* not yet parsed */ #define ASN1_TAG_UTF8STRING 0x0C /* not yet parsed */ #define ANS1_TAG_RELATIVE_OID 0x0D #define ASN1_TAG_SEQUENCE 0x10 /* shall be constructed */ #define ASN1_TAG_SET 0x11 #define ASN1_TAG_NUMERICSTRING 0x12 /* not yet parsed */ #define ASN1_TAG_PRINTABLESTRING 0x13 #define ASN1_TAG_TG1STRING 0x14 /* not yet parsed */ #define ASN1_TAG_VIDEOTEXSTRING 0x15 /* not yet parsed */ #define ASN1_TAG_IA5STRING 0x16 #define ASN1_TAG_UTCTIME 0x17 #define ASN1_TAG_GENERALIZEDTIME 0x18 /* not yet parsed */ #define ASN1_TAG_GRAPHICSTRING 0x19 /* not yet parsed */ #define ASN1_TAG_VISIBLESTRING 0x1A #define ASN1_TAG_GENERALSTRING 0x1B /* not yet parsed */ #define ASN1_TAG_UNIVERSALSTRING 0x1C /* not yet parsed */ #define ASN1_TAG_CHARACTERSTRING 0x1D /* not yet parsed */ #define ASN1_TAG_BMPSTRING 0x1E /* not yet parsed */ #define ASN1_CLASS_UNIVERSAL 0 #define ASN1_CLASS_APPLICATION 1 #define ASN1_CLASS_CONTEXT_SPECIFIC 2 #define ASN1_CLASS_PRIVATE 3 struct asn1_hdr { const u8 *payload; u8 identifier, class, constructed; unsigned int tag, length; }; #define ASN1_MAX_OID_LEN 20 struct asn1_oid { unsigned long oid[ASN1_MAX_OID_LEN]; size_t len; }; int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr); int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid); int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next); void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len); unsigned long asn1_bit_string_to_long(const u8 *buf, size_t len); int asn1_oid_equal(const struct asn1_oid *a, const struct asn1_oid *b); extern struct asn1_oid asn1_sha1_oid; extern struct asn1_oid asn1_sha256_oid; #endif /* ASN1_H */
Upload File
Create Folder