Macros | Functions | Variables
a_strnid.c File Reference
#include <openssl/asn1.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include "../internal.h"
#include "../lhash/internal.h"
#include "internal.h"
Include dependency graph for a_strnid.c:

Go to the source code of this file.

Macros

#define ub_common_name   64
 
#define ub_email_address   128
 
#define ub_locality_name   128
 
#define ub_name   32768
 
#define ub_organization_name   64
 
#define ub_organization_unit_name   64
 
#define ub_serial_number   64
 
#define ub_state_name   128
 

Functions

void asn1_get_string_table_for_testing (const ASN1_STRING_TABLE **out_ptr, size_t *out_len)
 
unsigned long ASN1_STRING_get_default_mask (void)
 
ASN1_STRINGASN1_STRING_set_by_NID (ASN1_STRING **out, const unsigned char *in, int len, int inform, int nid)
 
int ASN1_STRING_set_default_mask_asc (const char *p)
 
int ASN1_STRING_TABLE_add (int nid, long minsize, long maxsize, unsigned long mask, unsigned long flags)
 
void ASN1_STRING_TABLE_cleanup (void)
 
static const ASN1_STRING_TABLEasn1_string_table_get (int nid)
 
static LHASH_OF (ASN1_STRING_TABLE)
 
static int table_cmp (const ASN1_STRING_TABLE *a, const ASN1_STRING_TABLE *b)
 
static int table_cmp_void (const void *a, const void *b)
 
static uint32_t table_hash (const ASN1_STRING_TABLE *tbl)
 

Variables

static const ASN1_STRING_TABLE tbl_standard []
 

Macro Definition Documentation

◆ ub_common_name

#define ub_common_name   64

Definition at line 130 of file a_strnid.c.

◆ ub_email_address

#define ub_email_address   128

Definition at line 135 of file a_strnid.c.

◆ ub_locality_name

#define ub_locality_name   128

Definition at line 131 of file a_strnid.c.

◆ ub_name

#define ub_name   32768

Definition at line 129 of file a_strnid.c.

◆ ub_organization_name

#define ub_organization_name   64

Definition at line 133 of file a_strnid.c.

◆ ub_organization_unit_name

#define ub_organization_unit_name   64

Definition at line 134 of file a_strnid.c.

◆ ub_serial_number

#define ub_serial_number   64

Definition at line 136 of file a_strnid.c.

◆ ub_state_name

#define ub_state_name   128

Definition at line 132 of file a_strnid.c.

Function Documentation

◆ asn1_get_string_table_for_testing()

void asn1_get_string_table_for_testing ( const ASN1_STRING_TABLE **  out_ptr,
size_t *  out_len 
)

Definition at line 262 of file a_strnid.c.

◆ ASN1_STRING_get_default_mask()

unsigned long ASN1_STRING_get_default_mask ( void  )

Definition at line 81 of file a_strnid.c.

◆ ASN1_STRING_set_by_NID()

ASN1_STRING* ASN1_STRING_set_by_NID ( ASN1_STRING **  out,
const unsigned char *  in,
int  len,
int  inform,
int  nid 
)

Definition at line 99 of file a_strnid.c.

◆ ASN1_STRING_set_default_mask_asc()

int ASN1_STRING_set_default_mask_asc ( const char *  p)

Definition at line 86 of file a_strnid.c.

◆ ASN1_STRING_TABLE_add()

int ASN1_STRING_TABLE_add ( int  nid,
long  minsize,
long  maxsize,
unsigned long  mask,
unsigned long  flags 
)

Definition at line 208 of file a_strnid.c.

◆ ASN1_STRING_TABLE_cleanup()

void ASN1_STRING_TABLE_cleanup ( void  )

Definition at line 258 of file a_strnid.c.

◆ asn1_string_table_get()

static const ASN1_STRING_TABLE * asn1_string_table_get ( int  nid)
static

Definition at line 186 of file a_strnid.c.

◆ LHASH_OF()

static LHASH_OF ( ASN1_STRING_TABLE  )
static

Definition at line 74 of file a_strnid.c.

◆ table_cmp()

static int table_cmp ( const ASN1_STRING_TABLE a,
const ASN1_STRING_TABLE b 
)
static

Definition at line 165 of file a_strnid.c.

◆ table_cmp_void()

static int table_cmp_void ( const void *  a,
const void *  b 
)
static

Definition at line 176 of file a_strnid.c.

◆ table_hash()

static uint32_t table_hash ( const ASN1_STRING_TABLE tbl)
static

Definition at line 181 of file a_strnid.c.

Variable Documentation

◆ tbl_standard

const ASN1_STRING_TABLE tbl_standard[]
static
NID_pkcs9_emailAddress
#define NID_pkcs9_emailAddress
Definition: nid.h:304
ub_locality_name
#define ub_locality_name
Definition: a_strnid.c:131
DIRSTRING_TYPE
#define DIRSTRING_TYPE
Definition: asn1.h:728
NID_organizationName
#define NID_organizationName
Definition: nid.h:168
B_ASN1_IA5STRING
#define B_ASN1_IA5STRING
Definition: asn1.h:165
NID_friendlyName
#define NID_friendlyName
Definition: nid.h:792
NID_countryName
#define NID_countryName
Definition: nid.h:153
B_ASN1_PRINTABLESTRING
#define B_ASN1_PRINTABLESTRING
Definition: asn1.h:161
ub_email_address
#define ub_email_address
Definition: a_strnid.c:135
ub_common_name
#define ub_common_name
Definition: a_strnid.c:130
ub_organization_unit_name
#define ub_organization_unit_name
Definition: a_strnid.c:134
NID_commonName
#define NID_commonName
Definition: nid.h:148
NID_stateOrProvinceName
#define NID_stateOrProvinceName
Definition: nid.h:163
NID_domainComponent
#define NID_domainComponent
Definition: nid.h:1817
NID_pkcs9_unstructuredAddress
#define NID_pkcs9_unstructuredAddress
Definition: nid.h:332
NID_surname
#define NID_surname
Definition: nid.h:544
NID_givenName
#define NID_givenName
Definition: nid.h:539
STABLE_NO_MASK
#define STABLE_NO_MASK
Definition: asn1.h:793
NID_serialNumber
#define NID_serialNumber
Definition: nid.h:563
NID_pkcs9_unstructuredName
#define NID_pkcs9_unstructuredName
Definition: nid.h:308
NID_name
#define NID_name
Definition: nid.h:869
ub_state_name
#define ub_state_name
Definition: a_strnid.c:132
NID_ms_csp_name
#define NID_ms_csp_name
Definition: nid.h:1923
ub_serial_number
#define ub_serial_number
Definition: a_strnid.c:136
PKCS9STRING_TYPE
#define PKCS9STRING_TYPE
Definition: asn1.h:733
NID_organizationalUnitName
#define NID_organizationalUnitName
Definition: nid.h:173
B_ASN1_BMPSTRING
#define B_ASN1_BMPSTRING
Definition: asn1.h:173
NID_localityName
#define NID_localityName
Definition: nid.h:158
ub_organization_name
#define ub_organization_name
Definition: a_strnid.c:133
NID_pkcs9_challengePassword
#define NID_pkcs9_challengePassword
Definition: nid.h:328
NID_dnQualifier
#define NID_dnQualifier
Definition: nid.h:874
ub_name
#define ub_name
Definition: a_strnid.c:129
NID_initials
#define NID_initials
Definition: nid.h:549


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:01