Tor 0.4.9.1-alpha-dev
Functions
crypto_nss_mgt.c File Reference

Manage the NSS library (if used) More...

#include "lib/crypt_ops/crypto_nss_mgt.h"
#include "lib/log/log.h"
#include "lib/log/util_bug.h"
#include "lib/string/printf.h"
#include <nss.h>
#include <pk11func.h>
#include <ssl.h>
#include <prerror.h>
#include <prtypes.h>
#include <prinit.h>

Go to the source code of this file.

Functions

const char * crypto_nss_get_version_str (void)
 
const char * crypto_nss_get_header_version_str (void)
 
static char * nss_password_func_always_fail (PK11SlotInfo *slot, PRBool retry, void *arg)
 
void crypto_nss_early_init (int nss_only)
 
void crypto_nss_log_errors (int severity, const char *doing)
 
int crypto_nss_late_init (void)
 
void crypto_nss_global_cleanup (void)
 
void crypto_nss_prefork (void)
 
void crypto_nss_postfork (void)
 

Detailed Description

Manage the NSS library (if used)

Definition in file crypto_nss_mgt.c.

Function Documentation

◆ crypto_nss_early_init()

void crypto_nss_early_init ( int  nss_only)

Definition at line 55 of file crypto_nss_mgt.c.

◆ crypto_nss_get_header_version_str()

const char * crypto_nss_get_header_version_str ( void  )

Definition at line 37 of file crypto_nss_mgt.c.

◆ crypto_nss_get_version_str()

const char * crypto_nss_get_version_str ( void  )

Definition at line 32 of file crypto_nss_mgt.c.

◆ crypto_nss_global_cleanup()

void crypto_nss_global_cleanup ( void  )

Definition at line 117 of file crypto_nss_mgt.c.

◆ crypto_nss_late_init()

int crypto_nss_late_init ( void  )

Definition at line 109 of file crypto_nss_mgt.c.

◆ crypto_nss_log_errors()

void crypto_nss_log_errors ( int  severity,
const char *  doing 
)

Definition at line 88 of file crypto_nss_mgt.c.

◆ crypto_nss_postfork()

void crypto_nss_postfork ( void  )

Definition at line 131 of file crypto_nss_mgt.c.

◆ crypto_nss_prefork()

void crypto_nss_prefork ( void  )

Definition at line 125 of file crypto_nss_mgt.c.

◆ nss_password_func_always_fail()

static char * nss_password_func_always_fail ( PK11SlotInfo *  slot,
PRBool  retry,
void *  arg 
)
static

A password function that always returns NULL.

Definition at line 44 of file crypto_nss_mgt.c.