Apache HTTPD
Classes | Macros | Functions | Variables
ssl_engine_pphrase.c File Reference
#include "ssl_private.h"
#include <openssl/ui.h>

Go to the source code of this file.

Classes

struct  pphrase_cb_arg_t
 

Macros

#define BUILTIN_DIALOG_BACKOFF   2
 
#define BUILTIN_DIALOG_RETRIES   5
 

Functions

static apr_status_t exists_and_readable (const char *fname, apr_pool_t *pool, apr_time_t *mtime)
 
static const charasn1_table_vhost_key (SSLModConfigRec *mc, apr_pool_t *p, const char *id, int i)
 
int ssl_pphrase_Handle_CB (char *, int, int, void *)
 
static charpphrase_array_get (apr_array_header_t *arr, int idx)
 
apr_status_t ssl_load_encrypted_pkey (server_rec *s, apr_pool_t *p, int idx, const char *pkey_file, apr_array_header_t **pphrases)
 
static apr_status_t ssl_pipe_child_create (apr_pool_t *p, const char *progname)
 
static int pipe_get_passwd_cb (char *buf, int length, char *prompt, int verify)
 
apr_status_t modssl_load_engine_keypair (server_rec *s, apr_pool_t *pconf, apr_pool_t *ptemp, const char *vhostid, const char *certid, const char *keyid, X509 **pubkey, EVP_PKEY **privkey)
 

Variables

static const charkey_types [] = {"RSA", "DSA"}
 
static apr_file_twritetty = NULL
 
static apr_file_treadtty = NULL
 

Macro Definition Documentation

◆ BUILTIN_DIALOG_BACKOFF

#define BUILTIN_DIALOG_BACKOFF   2

Definition at line 125 of file ssl_engine_pphrase.c.

◆ BUILTIN_DIALOG_RETRIES

#define BUILTIN_DIALOG_RETRIES   5

Definition at line 126 of file ssl_engine_pphrase.c.

Function Documentation

◆ asn1_table_vhost_key()

static const char * asn1_table_vhost_key ( SSLModConfigRec mc,
apr_pool_t p,
const char id,
int  i 
)
static

Definition at line 101 of file ssl_engine_pphrase.c.

◆ exists_and_readable()

static apr_status_t exists_and_readable ( const char fname,
apr_pool_t pool,
apr_time_t mtime 
)
static

< type, mtime, ctime, atime, size

< Open the file for reading

<

Deprecated:
See also
APR_FOPEN_READ

Definition at line 61 of file ssl_engine_pphrase.c.

◆ pipe_get_passwd_cb()

static int pipe_get_passwd_cb ( char buf,
int  length,
char prompt,
int  verify 
)
static

Definition at line 426 of file ssl_engine_pphrase.c.

◆ pphrase_array_get()

static char * pphrase_array_get ( apr_array_header_t arr,
int  idx 
)
static

Definition at line 133 of file ssl_engine_pphrase.c.

◆ ssl_pipe_child_create()

static apr_status_t ssl_pipe_child_create ( apr_pool_t p,
const char progname 
)
static

Definition at line 393 of file ssl_engine_pphrase.c.

◆ ssl_pphrase_Handle_CB()

int ssl_pphrase_Handle_CB ( char buf,
int  bufsize,
int  verify,
void *  srv 
)

Definition at line 453 of file ssl_engine_pphrase.c.

Variable Documentation

◆ key_types

const char* key_types[] = {"RSA", "DSA"}
static

Definition at line 54 of file ssl_engine_pphrase.c.

◆ readtty

apr_file_t* readtty = NULL
static

Definition at line 129 of file ssl_engine_pphrase.c.

◆ writetty

apr_file_t* writetty = NULL
static

Definition at line 128 of file ssl_engine_pphrase.c.