FreeRDP
TestASN1.c File Reference
#include <winpr/asn1.h>
#include <winpr/print.h>

Functions

int TestASN1Read (int argc, char *argv[])
 
int TestASN1Write (int argc, char *argv[])
 
int TestASN1 (int argc, char *argv[])
 

Variables

static const BYTE boolContent [] = { 0x01, 0x01, 0xFF }
 
static const BYTE badBoolContent [] = { 0x01, 0x04, 0xFF }
 
static const BYTE integerContent [] = { 0x02, 0x01, 0x02 }
 
static const BYTE badIntegerContent [] = { 0x02, 0x04, 0x02 }
 
static const BYTE seqContent []
 
static const BYTE contextualInteger [] = { 0xA0, 0x03, 0x02, 0x01, 0x02 }
 
static const BYTE oidContent [] = { 0x06, 0x03, 0x55, 0x04, 0x0A }
 
static const BYTE badOidContent [] = { 0x06, 0x89, 0x55, 0x04, 0x0A }
 
static const BYTE oidValue [] = { 0x55, 0x04, 0x0A }
 
static const BYTE ia5stringContent []
 
static const BYTE utctimeContent []
 
static const BYTE oid1_val [] = { 1 }
 
static const WinPrAsn1_OID oid1 = { sizeof(oid1_val), (BYTE*)oid1_val }
 
static BYTE oid2_val [] = { 2, 2 }
 
static WinPrAsn1_OID oid2 = { sizeof(oid2_val), oid2_val }
 
static BYTE oid3_val [] = { 3, 3, 3 }
 
static WinPrAsn1_OID oid3 = { sizeof(oid3_val), oid3_val }
 
static BYTE oid4_val [] = { 4, 4, 4, 4 }
 
static WinPrAsn1_OID oid4 = { sizeof(oid4_val), oid4_val }
 

Function Documentation

◆ TestASN1()

int TestASN1 ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ TestASN1Read()

int TestASN1Read ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestASN1Write()

int TestASN1Write ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ badBoolContent

const BYTE badBoolContent[] = { 0x01, 0x04, 0xFF }
static

◆ badIntegerContent

const BYTE badIntegerContent[] = { 0x02, 0x04, 0x02 }
static

◆ badOidContent

const BYTE badOidContent[] = { 0x06, 0x89, 0x55, 0x04, 0x0A }
static

◆ boolContent

const BYTE boolContent[] = { 0x01, 0x01, 0xFF }
static

◆ contextualInteger

const BYTE contextualInteger[] = { 0xA0, 0x03, 0x02, 0x01, 0x02 }
static

◆ ia5stringContent

const BYTE ia5stringContent[]
static
Initial value:
= { 0x16, 0x22, 0x68, 0x74, 0x74, 0x70, 0x3A, 0x2F, 0x2F,
0x63, 0x70, 0x73, 0x2E, 0x72, 0x6F, 0x6F, 0x74, 0x2D,
0x78, 0x31, 0x2E, 0x6C, 0x65, 0x74, 0x73, 0x65, 0x6E,
0x63, 0x72, 0x79, 0x70, 0x74, 0x2E, 0x6F, 0x72, 0x67 }

◆ integerContent

const BYTE integerContent[] = { 0x02, 0x01, 0x02 }
static

◆ oid1

const WinPrAsn1_OID oid1 = { sizeof(oid1_val), (BYTE*)oid1_val }
static

◆ oid1_val

const BYTE oid1_val[] = { 1 }
static

◆ oid2

WinPrAsn1_OID oid2 = { sizeof(oid2_val), oid2_val }
static

◆ oid2_val

BYTE oid2_val[] = { 2, 2 }
static

◆ oid3

WinPrAsn1_OID oid3 = { sizeof(oid3_val), oid3_val }
static

◆ oid3_val

BYTE oid3_val[] = { 3, 3, 3 }
static

◆ oid4

WinPrAsn1_OID oid4 = { sizeof(oid4_val), oid4_val }
static

◆ oid4_val

BYTE oid4_val[] = { 4, 4, 4, 4 }
static

◆ oidContent

const BYTE oidContent[] = { 0x06, 0x03, 0x55, 0x04, 0x0A }
static

◆ oidValue

const BYTE oidValue[] = { 0x55, 0x04, 0x0A }
static

◆ seqContent

const BYTE seqContent[]
static
Initial value:
= { 0x30, 0x22, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x1B, 0x44,
0x69, 0x67, 0x69, 0x74, 0x61, 0x6C, 0x20, 0x53, 0x69, 0x67,
0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x54, 0x72, 0x75,
0x73, 0x74, 0x20, 0x43, 0x6F, 0x2E, 0x31 }

◆ utctimeContent

const BYTE utctimeContent[]
static
Initial value:
= { 0x17, 0x0D, 0x32, 0x31, 0x30, 0x33, 0x31, 0x37,
0x31, 0x36, 0x34, 0x30, 0x34, 0x36, 0x5A }