cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros
ext_def.c File Reference
#include "cert/cert.h"
#include "cert/certattr.h"
#include "enc_dec/asn1.h"
#include "enc_dec/asn1_ext.h"

Go to the source code of this file.

Macros

#define CTAG(x)   ( x | BER_CONTEXT_SPECIFIC )
 
#define ENCODING(tag)   BER_##tag, CRYPT_UNUSED
 
#define ENCODING_SPECIAL(value)   FIELDTYPE_##value, CRYPT_UNUSED
 
#define ENCODING_ALIAS(tag, aliasTag)   BER_##tag, aliasTag
 
#define ENCODING_TAGGED(tag, outerTag)   BER_##tag, outerTag
 
#define ENCODING_SPECIAL_TAGGED(tag, outerTag)   FIELDTYPE_##tag, outerTag
 
#define RANGE(min, max)   min, max, 0, NULL
 
#define RANGE_ATTRIBUTEBLOB   1, MAX_ATTRIBUTE_SIZE, 0, NULL
 
#define RANGE_BLOB   32, MAX_ATTRIBUTE_SIZE, 0, NULL
 
#define RANGE_BOOLEAN   FALSE, TRUE, FALSE, NULL
 
#define RANGE_NONE   0, 0, 0, NULL
 
#define RANGE_OID   MIN_OID_SIZE, MAX_OID_SIZE, 0, NULL
 
#define RANGE_TEXTSTRING   1, CRYPT_MAX_TEXTSIZE, 0, NULL
 
#define RANGE_TIME   sizeof( time_t ), sizeof( time_t ), 0, NULL
 
#define RANGE_UNUSED   CRYPT_UNUSED, CRYPT_UNUSED, 0, NULL
 
#define ENCODED_OBJECT(altEncodingTable)   0, 0, 0, ( void * ) altEncodingTable
 
#define CHECK_DNS   MIN_DNS_SIZE, MAX_DNS_SIZE, 0, ( void * ) checkDNS
 
#define CHECK_HTTP   MIN_URL_SIZE, MAX_URL_SIZE, 0, ( void * ) checkHTTP
 
#define CHECK_RFC822   MIN_RFC822_SIZE, MAX_RFC822_SIZE, 0, ( void * ) checkRFC822
 
#define CHECK_URL   MIN_URL_SIZE, MAX_URL_SIZE, 0, ( void * ) checkURL
 
#define CHECK_X500   0, 0, 0, ( void * ) checkDirectoryName
 
#define ATTR_TYPEINFO(type, level)
 
#define ATTR_TYPEINFO2(type1, type2, level)
 
#define ATTR_TYPEINFO3(type1, type2, type3, level)
 
#define ATTR_TYPEINFO_CRITICAL(type, level)
 
#define ATTR_TYPEINFO2_CRITICAL(type1, type2, level)
 
#define ATTR_TYPEINFO3_CRITICAL(type1, type2, type3, level)
 
#define ATTR_TYPEINFO_CMS   ( FL_ATTR_ATTRSTART )
 

Macro Definition Documentation

#define ATTR_TYPEINFO (   type,
  level 
)
Value:
( FL_LEVEL_##level | FL_VALID_##type | \
FL_ATTR_ATTRSTART )

Definition at line 148 of file ext_def.c.

#define ATTR_TYPEINFO2 (   type1,
  type2,
  level 
)
Value:
( FL_LEVEL_##level | FL_VALID_##type1 | \
FL_VALID_##type2 | FL_ATTR_ATTRSTART )

Definition at line 151 of file ext_def.c.

#define ATTR_TYPEINFO2_CRITICAL (   type1,
  type2,
  level 
)
Value:
( FL_LEVEL_##level | FL_VALID_##type1 | \
FL_VALID_##type2 | FL_ATTR_CRITICAL | \
FL_ATTR_ATTRSTART )

Definition at line 161 of file ext_def.c.

#define ATTR_TYPEINFO3 (   type1,
  type2,
  type3,
  level 
)
Value:
( FL_LEVEL_##level | FL_VALID_##type1 | \
FL_VALID_##type2 | FL_VALID_##type3 | \
FL_ATTR_ATTRSTART )

Definition at line 154 of file ext_def.c.

#define ATTR_TYPEINFO3_CRITICAL (   type1,
  type2,
  type3,
  level 
)
Value:
( FL_LEVEL_##level | FL_VALID_##type1 | \
FL_VALID_##type2 | FL_VALID_##type3 | \
FL_ATTR_CRITICAL | FL_ATTR_ATTRSTART )

Definition at line 165 of file ext_def.c.

#define ATTR_TYPEINFO_CMS   ( FL_ATTR_ATTRSTART )

Definition at line 169 of file ext_def.c.

#define ATTR_TYPEINFO_CRITICAL (   type,
  level 
)
Value:
( FL_LEVEL_##level | FL_VALID_##type | \
FL_ATTR_CRITICAL | FL_ATTR_ATTRSTART )

Definition at line 158 of file ext_def.c.

#define CHECK_DNS   MIN_DNS_SIZE, MAX_DNS_SIZE, 0, ( void * ) checkDNS

Definition at line 140 of file ext_def.c.

#define CHECK_HTTP   MIN_URL_SIZE, MAX_URL_SIZE, 0, ( void * ) checkHTTP

Definition at line 141 of file ext_def.c.

#define CHECK_RFC822   MIN_RFC822_SIZE, MAX_RFC822_SIZE, 0, ( void * ) checkRFC822

Definition at line 142 of file ext_def.c.

#define CHECK_URL   MIN_URL_SIZE, MAX_URL_SIZE, 0, ( void * ) checkURL

Definition at line 143 of file ext_def.c.

#define CHECK_X500   0, 0, 0, ( void * ) checkDirectoryName

Definition at line 144 of file ext_def.c.

#define CTAG (   x)    ( x | BER_CONTEXT_SPECIFIC )

Definition at line 116 of file ext_def.c.

#define ENCODED_OBJECT (   altEncodingTable)    0, 0, 0, ( void * ) altEncodingTable

Definition at line 138 of file ext_def.c.

#define ENCODING (   tag)    BER_##tag, CRYPT_UNUSED

Definition at line 120 of file ext_def.c.

#define ENCODING_ALIAS (   tag,
  aliasTag 
)    BER_##tag, aliasTag

Definition at line 123 of file ext_def.c.

#define ENCODING_SPECIAL (   value)    FIELDTYPE_##value, CRYPT_UNUSED

Definition at line 121 of file ext_def.c.

#define ENCODING_SPECIAL_TAGGED (   tag,
  outerTag 
)    FIELDTYPE_##tag, outerTag

Definition at line 127 of file ext_def.c.

#define ENCODING_TAGGED (   tag,
  outerTag 
)    BER_##tag, outerTag

Definition at line 125 of file ext_def.c.

#define RANGE (   min,
  max 
)    min, max, 0, NULL

Definition at line 129 of file ext_def.c.

#define RANGE_ATTRIBUTEBLOB   1, MAX_ATTRIBUTE_SIZE, 0, NULL

Definition at line 130 of file ext_def.c.

#define RANGE_BLOB   32, MAX_ATTRIBUTE_SIZE, 0, NULL

Definition at line 131 of file ext_def.c.

#define RANGE_BOOLEAN   FALSE, TRUE, FALSE, NULL

Definition at line 132 of file ext_def.c.

#define RANGE_NONE   0, 0, 0, NULL

Definition at line 133 of file ext_def.c.

#define RANGE_OID   MIN_OID_SIZE, MAX_OID_SIZE, 0, NULL

Definition at line 134 of file ext_def.c.

#define RANGE_TEXTSTRING   1, CRYPT_MAX_TEXTSIZE, 0, NULL

Definition at line 135 of file ext_def.c.

#define RANGE_TIME   sizeof( time_t ), sizeof( time_t ), 0, NULL

Definition at line 136 of file ext_def.c.

#define RANGE_UNUSED   CRYPT_UNUSED, CRYPT_UNUSED, 0, NULL

Definition at line 137 of file ext_def.c.