![]() |
ucspi-ssl 0.13.03
ucspi-ssl
|
IPv6 enabled TLS framework for a preforking server. More...
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <netdb.h>
#include <signal.h>
#include <arpa/inet.h>
#include "ucspissl.h"
#include "uint_t.h"
#include "str.h"
#include "byte.h"
#include "fmt.h"
#include "scan.h"
#include "ip.h"
#include "fd.h"
#include "exit.h"
#include "env.h"
#include "prot.h"
#include "open.h"
#include "wait.h"
#include "stralloc.h"
#include "alloc.h"
#include "buffer.h"
#include "getln.h"
#include "logmsg.h"
#include "getoptb.h"
#include "socket_if.h"
#include "ndelay.h"
#include "remoteinfo.h"
#include "rules.h"
#include "sig.h"
#include "iopause.h"
#include "dnsresolv.h"
#include "auto_cafile.h"
#include "auto_cadir.h"
#include "auto_ccafile.h"
#include "auto_dhfile.h"
#include "auto_certchainfile.h"
#include "auto_certfile.h"
#include "auto_keyfile.h"
#include "auto_ciphers.h"
#include "coe.h"
#include "lock.h"
Go to the source code of this file.
Functions | |
void | server (int argcs, char *const *argvs) |
void | drop_nomem (void) |
void | drop_notemp (void) |
void | cats (const char *s) |
void | append (const char *ch) |
void | safecats (const char *s) |
void | env (const char *s, const char *t) |
void | env_reset (void) |
int | error_warn (const char *x) |
void | drop_rules (const char *fnbase) |
void | found (char *data, unsigned int datalen) |
int | doit (int t) |
void | done (void) |
void | usage (void) |
void | printstatus (void) |
void | trigger (void) |
void | sigterm (int dummy) |
void | sigchld (int dummy) |
void | read_passwd (void) |
int | passwd_cb (char *buff, int size, int rwflag, void *userdata) |
void | spawn (int s, int argc, char *const *argv) |
int | main (int argc, char *const *argv) |
Variables | |
char * | who |
int | verbosity = 1 |
int | flagkillopts = 1 |
int | flagafter = 0 |
int | flagdelay = 0 |
const char * | banner = "" |
int | flagremoteinfo = 1 |
int | flagremotehost = 1 |
int | flagparanoid = 0 |
int | flagclientcert = 0 |
int | flagsslenv = 0 |
int | flagtcpenv = 0 |
unsigned long | timeout = 26 |
unsigned long | ssltimeout = 26 |
unsigned int | progtimeout = 3600 |
uint32 | netif = 0 |
int | selfpipe [2] |
int | flagexit = 0 |
int | flagdualstack = 0 |
uint16 | localport |
char | localportstr [FMT_ULONG] |
char | localip [16] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 } |
char | localipstr [IP6_FMT] |
const char * | localhost = 0 |
const char * | lockfile = 0 |
int | fdlock |
uint16 | remoteport |
char | remoteportstr [FMT_ULONG] |
char | remoteip [16] |
char | remoteipstr [IP6_FMT] |
char * | remotehost = 0 |
const char * | hostname |
const char * | loopback = "127.0.0.1" |
stralloc | envplus = {0} |
stralloc | envtmp = {0} |
char | bspace [16] |
buffer | b |
SSL_CTX * | ctx |
const char * | certchainfile = auto_certchainfile |
const char * | certfile = auto_certfile |
const char * | keyfile = auto_keyfile |
stralloc | password = {0} |
int | match = 0 |
const char * | cafile = auto_cafile |
const char * | ccafile = auto_ccafile |
const char * | cadir = auto_cadir |
const char * | ciphers = auto_ciphers |
int | verifydepth = 1 |
const char * | dhfile = auto_dhfile |
int | rsalen = SSL_RSA_LEN |
char * | keypass = 0 |
int | pi [2] |
int | po [2] |
X509 * | cert |
char | buf [SSL_NAME_LEN] |
char ** | e |
char ** | e1 |
int | flagdeny = 0 |
int | flagallow = 0 |
int | flagallownorules = 0 |
const char * | fnrules = 0 |
const char * | fniprules = 0 |
unsigned long | limit = 40 |
unsigned long | numchildren = 0 |
int | flag1 = 0 |
int | flag3 = 0 |
unsigned long | backlog = 20 |
unsigned long | uid = 0 |
unsigned long | gid = 0 |
IPv6 enabled TLS framework for a preforking server.
Definition in file sslhandle.c.
void append | ( | const char * | ch | ) |
Definition at line 153 of file sslhandle.c.
void cats | ( | const char * | s | ) |
Definition at line 149 of file sslhandle.c.
int doit | ( | int | t | ) |
Definition at line 275 of file sslhandle.c.
void done | ( | void | ) |
Definition at line 497 of file sslhandle.c.
void drop_nomem | ( | void | ) |
void drop_notemp | ( | void | ) |
Definition at line 145 of file sslhandle.c.
void drop_rules | ( | const char * | fnbase | ) |
void env | ( | const char * | s, |
const char * | t | ||
) |
Definition at line 172 of file sslhandle.c.
void env_reset | ( | void | ) |
int error_warn | ( | const char * | x | ) |
void found | ( | char * | data, |
unsigned int | datalen | ||
) |
Definition at line 249 of file sslhandle.c.
int main | ( | int | argc, |
char *const * | argv | ||
) |
int passwd_cb | ( | char * | buff, |
int | size, | ||
int | rwflag, | ||
void * | userdata | ||
) |
void printstatus | ( | void | ) |
void read_passwd | ( | void | ) |
void safecats | ( | const char * | s | ) |
Definition at line 157 of file sslhandle.c.
void server | ( | int | argcs, |
char *const * | argvs | ||
) |
void sigchld | ( | int | dummy | ) |
Definition at line 563 of file sslhandle.c.
void sigterm | ( | int | dummy | ) |
Definition at line 552 of file sslhandle.c.
void spawn | ( | int | s, |
int | argc, | ||
char *const * | argv | ||
) |
Definition at line 600 of file sslhandle.c.
void trigger | ( | void | ) |
void usage | ( | void | ) |
buffer b |
Definition at line 106 of file sslhandle.c.
unsigned long backlog = 20 |
Definition at line 535 of file sslhandle.c.
const char* banner = "" |
Definition at line 59 of file sslhandle.c.
char bspace[16] |
Definition at line 105 of file sslhandle.c.
char buf[SSL_NAME_LEN] |
Definition at line 127 of file sslhandle.c.
const char* cadir = auto_cadir |
Definition at line 116 of file sslhandle.c.
const char* cafile = auto_cafile |
Definition at line 114 of file sslhandle.c.
const char* ccafile = auto_ccafile |
Definition at line 115 of file sslhandle.c.
X509* cert |
Definition at line 126 of file sslhandle.c.
const char* certchainfile = auto_certchainfile |
Definition at line 109 of file sslhandle.c.
const char* certfile = auto_certfile |
Definition at line 110 of file sslhandle.c.
const char* ciphers = auto_ciphers |
Definition at line 117 of file sslhandle.c.
SSL_CTX* ctx |
Definition at line 108 of file sslhandle.c.
const char* dhfile = auto_dhfile |
Definition at line 119 of file sslhandle.c.
char** e |
Definition at line 129 of file sslhandle.c.
char** e1 |
Definition at line 130 of file sslhandle.c.
stralloc envplus = {0} |
Definition at line 102 of file sslhandle.c.
stralloc envtmp = {0} |
Definition at line 103 of file sslhandle.c.
int fdlock |
Definition at line 83 of file sslhandle.c.
int flag1 = 0 |
Definition at line 533 of file sslhandle.c.
int flag3 = 0 |
Definition at line 534 of file sslhandle.c.
int flagafter = 0 |
Definition at line 57 of file sslhandle.c.
int flagallow = 0 |
Definition at line 136 of file sslhandle.c.
int flagallownorules = 0 |
Definition at line 137 of file sslhandle.c.
int flagclientcert = 0 |
Definition at line 63 of file sslhandle.c.
int flagdelay = 0 |
Definition at line 58 of file sslhandle.c.
int flagdeny = 0 |
Definition at line 135 of file sslhandle.c.
int flagdualstack = 0 |
Definition at line 72 of file sslhandle.c.
int flagexit = 0 |
Definition at line 71 of file sslhandle.c.
int flagkillopts = 1 |
Definition at line 56 of file sslhandle.c.
int flagparanoid = 0 |
Definition at line 62 of file sslhandle.c.
int flagremotehost = 1 |
Definition at line 61 of file sslhandle.c.
int flagremoteinfo = 1 |
Definition at line 60 of file sslhandle.c.
int flagsslenv = 0 |
Definition at line 64 of file sslhandle.c.
int flagtcpenv = 0 |
Definition at line 65 of file sslhandle.c.
const char* fniprules = 0 |
Definition at line 139 of file sslhandle.c.
const char* fnrules = 0 |
Definition at line 138 of file sslhandle.c.
unsigned long gid = 0 |
Definition at line 537 of file sslhandle.c.
const char* hostname |
Definition at line 92 of file sslhandle.c.
const char* keyfile = auto_keyfile |
Definition at line 111 of file sslhandle.c.
char* keypass = 0 |
Definition at line 121 of file sslhandle.c.
unsigned long limit = 40 |
Definition at line 530 of file sslhandle.c.
const char* localhost = 0 |
Definition at line 81 of file sslhandle.c.
char localip[16] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 } |
Definition at line 78 of file sslhandle.c.
char localipstr[IP6_FMT] |
Definition at line 79 of file sslhandle.c.
uint16 localport |
Definition at line 76 of file sslhandle.c.
char localportstr[FMT_ULONG] |
Definition at line 77 of file sslhandle.c.
const char* lockfile = 0 |
Definition at line 82 of file sslhandle.c.
const char* loopback = "127.0.0.1" |
Definition at line 93 of file sslhandle.c.
int match = 0 |
Definition at line 113 of file sslhandle.c.
uint32 netif = 0 |
Definition at line 69 of file sslhandle.c.
unsigned long numchildren = 0 |
Definition at line 531 of file sslhandle.c.
stralloc password = {0} |
Definition at line 112 of file sslhandle.c.
int pi[2] |
Definition at line 123 of file sslhandle.c.
int po[2] |
Definition at line 124 of file sslhandle.c.
unsigned int progtimeout = 3600 |
Definition at line 68 of file sslhandle.c.
char* remotehost = 0 |
Definition at line 90 of file sslhandle.c.
char remoteip[16] |
Definition at line 87 of file sslhandle.c.
char remoteipstr[IP6_FMT] |
Definition at line 88 of file sslhandle.c.
uint16 remoteport |
Definition at line 85 of file sslhandle.c.
char remoteportstr[FMT_ULONG] |
Definition at line 86 of file sslhandle.c.
int rsalen = SSL_RSA_LEN |
Definition at line 120 of file sslhandle.c.
int selfpipe[2] |
Definition at line 70 of file sslhandle.c.
unsigned long ssltimeout = 26 |
Definition at line 67 of file sslhandle.c.
unsigned long timeout = 26 |
Definition at line 66 of file sslhandle.c.
unsigned long uid = 0 |
Definition at line 536 of file sslhandle.c.
int verbosity = 1 |
Definition at line 55 of file sslhandle.c.
int verifydepth = 1 |
Definition at line 118 of file sslhandle.c.
char* who |
Definition at line 53 of file sslhandle.c.