forked from cory/tildefriends
iOS OpenSSL => 3.2.0.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4645 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -7,8 +7,12 @@
|
||||
* https://www.openssl.org/source/license.html
|
||||
*/
|
||||
|
||||
#include <openssl/bn.h>
|
||||
#include "internal/packet.h"
|
||||
#ifndef OSSL_INTERNAL_DER_H
|
||||
# define OSSL_INTERNAL_DER_H
|
||||
# pragma once
|
||||
|
||||
# include <openssl/bn.h>
|
||||
# include "internal/packet.h"
|
||||
|
||||
/*
|
||||
* NOTE: X.690 numbers the identifier octet bits 1 to 8.
|
||||
@ -22,42 +26,42 @@
|
||||
* These are only valid for the UNIVERSAL class. With the other classes,
|
||||
* these bits have a different meaning.
|
||||
*/
|
||||
#define DER_P_EOC 0 /* BER End Of Contents tag */
|
||||
#define DER_P_BOOLEAN 1
|
||||
#define DER_P_INTEGER 2
|
||||
#define DER_P_BIT_STRING 3
|
||||
#define DER_P_OCTET_STRING 4
|
||||
#define DER_P_NULL 5
|
||||
#define DER_P_OBJECT 6
|
||||
#define DER_P_OBJECT_DESCRIPTOR 7
|
||||
#define DER_P_EXTERNAL 8
|
||||
#define DER_P_REAL 9
|
||||
#define DER_P_ENUMERATED 10
|
||||
#define DER_P_UTF8STRING 12
|
||||
#define DER_P_SEQUENCE 16
|
||||
#define DER_P_SET 17
|
||||
#define DER_P_NUMERICSTRING 18
|
||||
#define DER_P_PRINTABLESTRING 19
|
||||
#define DER_P_T61STRING 20
|
||||
#define DER_P_VIDEOTEXSTRING 21
|
||||
#define DER_P_IA5STRING 22
|
||||
#define DER_P_UTCTIME 23
|
||||
#define DER_P_GENERALIZEDTIME 24
|
||||
#define DER_P_GRAPHICSTRING 25
|
||||
#define DER_P_ISO64STRING 26
|
||||
#define DER_P_GENERALSTRING 27
|
||||
#define DER_P_UNIVERSALSTRING 28
|
||||
#define DER_P_BMPSTRING 30
|
||||
# define DER_P_EOC 0 /* BER End Of Contents tag */
|
||||
# define DER_P_BOOLEAN 1
|
||||
# define DER_P_INTEGER 2
|
||||
# define DER_P_BIT_STRING 3
|
||||
# define DER_P_OCTET_STRING 4
|
||||
# define DER_P_NULL 5
|
||||
# define DER_P_OBJECT 6
|
||||
# define DER_P_OBJECT_DESCRIPTOR 7
|
||||
# define DER_P_EXTERNAL 8
|
||||
# define DER_P_REAL 9
|
||||
# define DER_P_ENUMERATED 10
|
||||
# define DER_P_UTF8STRING 12
|
||||
# define DER_P_SEQUENCE 16
|
||||
# define DER_P_SET 17
|
||||
# define DER_P_NUMERICSTRING 18
|
||||
# define DER_P_PRINTABLESTRING 19
|
||||
# define DER_P_T61STRING 20
|
||||
# define DER_P_VIDEOTEXSTRING 21
|
||||
# define DER_P_IA5STRING 22
|
||||
# define DER_P_UTCTIME 23
|
||||
# define DER_P_GENERALIZEDTIME 24
|
||||
# define DER_P_GRAPHICSTRING 25
|
||||
# define DER_P_ISO64STRING 26
|
||||
# define DER_P_GENERALSTRING 27
|
||||
# define DER_P_UNIVERSALSTRING 28
|
||||
# define DER_P_BMPSTRING 30
|
||||
|
||||
/* DER Flags, occupying bit 6 in the DER identifier byte */
|
||||
#define DER_F_PRIMITIVE 0x00
|
||||
#define DER_F_CONSTRUCTED 0x20
|
||||
# define DER_F_PRIMITIVE 0x00
|
||||
# define DER_F_CONSTRUCTED 0x20
|
||||
|
||||
/* DER classes tags, occupying bits 7-8 in the DER identifier byte */
|
||||
#define DER_C_UNIVERSAL 0x00
|
||||
#define DER_C_APPLICATION 0x40
|
||||
#define DER_C_CONTEXT 0x80
|
||||
#define DER_C_PRIVATE 0xC0
|
||||
# define DER_C_UNIVERSAL 0x00
|
||||
# define DER_C_APPLICATION 0x40
|
||||
# define DER_C_CONTEXT 0x80
|
||||
# define DER_C_PRIVATE 0xC0
|
||||
|
||||
/*
|
||||
* Run-time constructors.
|
||||
@ -67,7 +71,7 @@
|
||||
*/
|
||||
|
||||
/* This can be used for all items that don't have a context */
|
||||
#define DER_NO_CONTEXT -1
|
||||
# define DER_NO_CONTEXT -1
|
||||
|
||||
int ossl_DER_w_precompiled(WPACKET *pkt, int tag,
|
||||
const unsigned char *precompiled,
|
||||
@ -86,3 +90,5 @@ int ossl_DER_w_octet_string_uint32(WPACKET *pkt, int tag, uint32_t value);
|
||||
*/
|
||||
int ossl_DER_w_begin_sequence(WPACKET *pkt, int tag);
|
||||
int ossl_DER_w_end_sequence(WPACKET *pkt, int tag);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user