Classes | Typedefs | Functions | Variables
by_dir.c File Reference
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <openssl/buf.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include <openssl/x509.h>
#include "../internal.h"
#include "internal.h"
Include dependency graph for by_dir.c:

Go to the source code of this file.

Classes

struct  lookup_dir_entry_st
 
struct  lookup_dir_hashes_st
 
struct  lookup_dir_st
 

Typedefs

typedef struct lookup_dir_st BY_DIR
 
typedef struct lookup_dir_entry_st BY_DIR_ENTRY
 
typedef struct lookup_dir_hashes_st BY_DIR_HASH
 

Functions

static int add_cert_dir (BY_DIR *ctx, const char *dir, int type)
 
static void by_dir_entry_free (BY_DIR_ENTRY *ent)
 
static int by_dir_hash_cmp (const BY_DIR_HASH **a, const BY_DIR_HASH **b)
 
static void by_dir_hash_free (BY_DIR_HASH *hash)
 
static int dir_ctrl (X509_LOOKUP *ctx, int cmd, const char *argp, long argl, char **ret)
 
static void free_dir (X509_LOOKUP *lu)
 
static int get_cert_by_subject (X509_LOOKUP *xl, int type, X509_NAME *name, X509_OBJECT *ret)
 
static int new_dir (X509_LOOKUP *lu)
 
X509_LOOKUP_METHODX509_LOOKUP_hash_dir (void)
 

Variables

static struct CRYPTO_STATIC_MUTEX g_ent_hashes_lock
 
static X509_LOOKUP_METHOD x509_dir_lookup
 

Typedef Documentation

◆ BY_DIR

typedef struct lookup_dir_st BY_DIR

◆ BY_DIR_ENTRY

◆ BY_DIR_HASH

Function Documentation

◆ add_cert_dir()

static int add_cert_dir ( BY_DIR ctx,
const char *  dir,
int  type 
)
static

Definition at line 195 of file by_dir.c.

◆ by_dir_entry_free()

static void by_dir_entry_free ( BY_DIR_ENTRY ent)
static

Definition at line 174 of file by_dir.c.

◆ by_dir_hash_cmp()

static int by_dir_hash_cmp ( const BY_DIR_HASH **  a,
const BY_DIR_HASH **  b 
)
static

Definition at line 165 of file by_dir.c.

◆ by_dir_hash_free()

static void by_dir_hash_free ( BY_DIR_HASH hash)
static

Definition at line 160 of file by_dir.c.

◆ dir_ctrl()

static int dir_ctrl ( X509_LOOKUP ctx,
int  cmd,
const char *  argp,
long  argl,
char **  ret 
)
static

Definition at line 117 of file by_dir.c.

◆ free_dir()

static void free_dir ( X509_LOOKUP lu)
static

Definition at line 183 of file by_dir.c.

◆ get_cert_by_subject()

static int get_cert_by_subject ( X509_LOOKUP xl,
int  type,
X509_NAME name,
X509_OBJECT ret 
)
static

Definition at line 257 of file by_dir.c.

◆ new_dir()

static int new_dir ( X509_LOOKUP lu)
static

Definition at line 145 of file by_dir.c.

◆ X509_LOOKUP_hash_dir()

X509_LOOKUP_METHOD* X509_LOOKUP_hash_dir ( void  )

Definition at line 112 of file by_dir.c.

Variable Documentation

◆ g_ent_hashes_lock

struct CRYPTO_STATIC_MUTEX g_ent_hashes_lock
static
Initial value:

Definition at line 254 of file by_dir.c.

◆ x509_dir_lookup

X509_LOOKUP_METHOD x509_dir_lookup
static
Initial value:
= {
"Load certs from files in a directory",
NULL,
NULL,
NULL,
NULL,
NULL,
}

Definition at line 99 of file by_dir.c.

CRYPTO_STATIC_MUTEX_INIT
#define CRYPTO_STATIC_MUTEX_INIT
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:536
free_dir
static void free_dir(X509_LOOKUP *lu)
Definition: by_dir.c:183
dir_ctrl
static int dir_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl, char **ret)
Definition: by_dir.c:117
get_cert_by_subject
static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, X509_OBJECT *ret)
Definition: by_dir.c:257
new_dir
static int new_dir(X509_LOOKUP *lu)
Definition: by_dir.c:145


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