Functions | Variables
obj.c File Reference
#include <openssl/obj.h>
#include <inttypes.h>
#include <limits.h>
#include <string.h>
#include <openssl/asn1.h>
#include <openssl/bytestring.h>
#include <openssl/err.h>
#include <openssl/lhash.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include "../asn1/internal.h"
#include "../internal.h"
#include "../lhash/internal.h"
#include "obj_dat.h"
Include dependency graph for obj.c:

Go to the source code of this file.

Functions

static int cmp_data (const ASN1_OBJECT *a, const ASN1_OBJECT *b)
 
static int cmp_long_name (const ASN1_OBJECT *a, const ASN1_OBJECT *b)
 
static int cmp_nid (const ASN1_OBJECT *a, const ASN1_OBJECT *b)
 
static int cmp_short_name (const ASN1_OBJECT *a, const ASN1_OBJECT *b)
 
static ASN1_OBJECTcreate_object_with_text_oid (int(*get_nid)(void), const char *oid, const char *short_name, const char *long_name)
 
static uint32_t hash_data (const ASN1_OBJECT *obj)
 
static uint32_t hash_long_name (const ASN1_OBJECT *obj)
 
static uint32_t hash_nid (const ASN1_OBJECT *obj)
 
static uint32_t hash_short_name (const ASN1_OBJECT *obj)
 
static LHASH_OF (ASN1_OBJECT)
 
static int long_name_cmp (const void *key, const void *element)
 
static int obj_add_object (ASN1_OBJECT *obj)
 
int OBJ_cbs2nid (const CBS *cbs)
 
void OBJ_cleanup (void)
 
int OBJ_cmp (const ASN1_OBJECT *a, const ASN1_OBJECT *b)
 
static int obj_cmp (const void *key, const void *element)
 
int OBJ_create (const char *oid, const char *short_name, const char *long_name)
 
ASN1_OBJECTOBJ_dup (const ASN1_OBJECT *o)
 
const uint8_tOBJ_get0_data (const ASN1_OBJECT *obj)
 
size_t OBJ_length (const ASN1_OBJECT *obj)
 
int OBJ_ln2nid (const char *long_name)
 
OPENSSL_EXPORT int OBJ_nid2cbb (CBB *out, int nid)
 
const char * OBJ_nid2ln (int nid)
 
ASN1_OBJECTOBJ_nid2obj (int nid)
 
const char * OBJ_nid2sn (int nid)
 
int OBJ_obj2nid (const ASN1_OBJECT *obj)
 
int OBJ_obj2txt (char *out, int out_len, const ASN1_OBJECT *obj, int always_return_oid)
 
int OBJ_sn2nid (const char *short_name)
 
int OBJ_txt2nid (const char *s)
 
ASN1_OBJECTOBJ_txt2obj (const char *s, int dont_search_names)
 
static int short_name_cmp (const void *key, const void *element)
 
static int strlcpy_int (char *dst, const char *src, int dst_size)
 

Variables

static struct CRYPTO_STATIC_MUTEX global_added_lock = CRYPTO_STATIC_MUTEX_INIT
 

Function Documentation

◆ cmp_data()

static int cmp_data ( const ASN1_OBJECT a,
const ASN1_OBJECT b 
)
static

Definition at line 482 of file obj.c.

◆ cmp_long_name()

static int cmp_long_name ( const ASN1_OBJECT a,
const ASN1_OBJECT b 
)
static

Definition at line 502 of file obj.c.

◆ cmp_nid()

static int cmp_nid ( const ASN1_OBJECT a,
const ASN1_OBJECT b 
)
static

Definition at line 474 of file obj.c.

◆ cmp_short_name()

static int cmp_short_name ( const ASN1_OBJECT a,
const ASN1_OBJECT b 
)
static

Definition at line 494 of file obj.c.

◆ create_object_with_text_oid()

static ASN1_OBJECT* create_object_with_text_oid ( int(*)(void)  get_nid,
const char *  oid,
const char *  short_name,
const char *  long_name 
)
static

Definition at line 389 of file obj.c.

◆ hash_data()

static uint32_t hash_data ( const ASN1_OBJECT obj)
static

Definition at line 478 of file obj.c.

◆ hash_long_name()

static uint32_t hash_long_name ( const ASN1_OBJECT obj)
static

Definition at line 498 of file obj.c.

◆ hash_nid()

static uint32_t hash_nid ( const ASN1_OBJECT obj)
static

Definition at line 470 of file obj.c.

◆ hash_short_name()

static uint32_t hash_short_name ( const ASN1_OBJECT obj)
static

Definition at line 490 of file obj.c.

◆ LHASH_OF()

static LHASH_OF ( ASN1_OBJECT  )
static

Definition at line 82 of file obj.c.

◆ long_name_cmp()

static int long_name_cmp ( const void *  key,
const void *  element 
)
static

Definition at line 290 of file obj.c.

◆ obj_add_object()

static int obj_add_object ( ASN1_OBJECT obj)
static

Definition at line 508 of file obj.c.

◆ OBJ_cbs2nid()

int OBJ_cbs2nid ( const CBS cbs)

Definition at line 239 of file obj.c.

◆ OBJ_cleanup()

void OBJ_cleanup ( void  )

Definition at line 553 of file obj.c.

◆ OBJ_cmp()

int OBJ_cmp ( const ASN1_OBJECT a,
const ASN1_OBJECT b 
)

Definition at line 166 of file obj.c.

◆ obj_cmp()

static int obj_cmp ( const void *  key,
const void *  element 
)
static

Definition at line 195 of file obj.c.

◆ OBJ_create()

int OBJ_create ( const char *  oid,
const char *  short_name,
const char *  long_name 
)

Definition at line 543 of file obj.c.

◆ OBJ_dup()

ASN1_OBJECT* OBJ_dup ( const ASN1_OBJECT o)

Definition at line 101 of file obj.c.

◆ OBJ_get0_data()

const uint8_t* OBJ_get0_data ( const ASN1_OBJECT obj)

Definition at line 176 of file obj.c.

◆ OBJ_length()

size_t OBJ_length ( const ASN1_OBJECT obj)

Definition at line 184 of file obj.c.

◆ OBJ_ln2nid()

int OBJ_ln2nid ( const char *  long_name)

Definition at line 297 of file obj.c.

◆ OBJ_nid2cbb()

OPENSSL_EXPORT int OBJ_nid2cbb ( CBB out,
int  nid 
)

Definition at line 331 of file obj.c.

◆ OBJ_nid2ln()

const char* OBJ_nid2ln ( int  nid)

Definition at line 380 of file obj.c.

◆ OBJ_nid2obj()

ASN1_OBJECT* OBJ_nid2obj ( int  nid)

Definition at line 345 of file obj.c.

◆ OBJ_nid2sn()

const char* OBJ_nid2sn ( int  nid)

Definition at line 371 of file obj.c.

◆ OBJ_obj2nid()

int OBJ_obj2nid ( const ASN1_OBJECT obj)

Definition at line 208 of file obj.c.

◆ OBJ_obj2txt()

int OBJ_obj2txt ( char *  out,
int  out_len,
const ASN1_OBJECT obj,
int  always_return_oid 
)

Definition at line 434 of file obj.c.

◆ OBJ_sn2nid()

int OBJ_sn2nid ( const char *  short_name)

Definition at line 262 of file obj.c.

◆ OBJ_txt2nid()

int OBJ_txt2nid ( const char *  s)

Definition at line 321 of file obj.c.

◆ OBJ_txt2obj()

ASN1_OBJECT* OBJ_txt2obj ( const char *  s,
int  dont_search_names 
)

Definition at line 410 of file obj.c.

◆ short_name_cmp()

static int short_name_cmp ( const void *  key,
const void *  element 
)
static

Definition at line 255 of file obj.c.

◆ strlcpy_int()

static int strlcpy_int ( char *  dst,
const char *  src,
int  dst_size 
)
static

Definition at line 425 of file obj.c.

Variable Documentation

◆ global_added_lock

struct CRYPTO_STATIC_MUTEX global_added_lock = CRYPTO_STATIC_MUTEX_INIT
static

Definition at line 80 of file obj.c.



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