ucspi-ssl 0.13.03
ucspi-ssl
Loading...
Searching...
No Matches
Macros | Functions | Variables
sslclient.c File Reference

IPv6 enabled sslclient. More...

#include <unistd.h>
#include <open.h>
#include <sys/types.h>
#include <sys/param.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "ucspissl.h"
#include "sig.h"
#include "exit.h"
#include "getoptb.h"
#include "uint_t.h"
#include "fmt.h"
#include "scan.h"
#include "str.h"
#include "ip.h"
#include "socket_if.h"
#include "fd.h"
#include "stralloc.h"
#include "buffer.h"
#include "getln.h"
#include "logmsg.h"
#include "pathexec.h"
#include "timeoutconn.h"
#include "remoteinfo.h"
#include "dnsresolv.h"
#include "byte.h"
#include "ndelay.h"
#include "wait.h"
#include "auto_cafile.h"
#include "auto_cadir.h"
#include "auto_ciphers.h"
Include dependency graph for sslclient.c:

Go to the source code of this file.

Macros

#define WHO   "sslclient"
 

Functions

void nomem (void)
 
void env (const char *s, const char *t)
 
void usage (void)
 
void read_pwdfile ()
 
void read_passwd ()
 
int passwd_cb (char *buf, int size, int rwflag, void *userdata)
 
int main (int argc, char *const *argv)
 

Variables

int verbosity = 1
 
int flagdelay = 0
 
int flagremoteinfo = 0
 
int flagremotehost = 1
 
int flag3 = 0
 
int flagsslenv = 0
 
int flagtcpenv = 0
 
int flagsni = 0
 
unsigned long itimeout = 26
 
unsigned long ctimeout [2] = { 2, 58 }
 
unsigned int progtimeout = 3600
 
uint32 netif = 0
 
const char * loopback = "127.0.0.1"
 
char iplocal [16] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 }
 
uint16 portlocal = 0
 
const char * forcelocal = 0
 
char ipremote [16]
 
uint16 portremote
 
const char * hostname
 
int flagname = 1
 
int flagservercert = 1
 
char seed [128]
 
char bspace [16]
 
buffer b
 
SSL_CTX * ctx
 
const char * certfile = 0
 
const char * keyfile = 0
 
const char * keypass = 0
 
const char * cafile = auto_cafile
 
const char * cadir = auto_cadir
 
const char * ciphers = auto_ciphers
 
stralloc password = {0}
 
int match = 0
 
int verifydepth = 1
 
int pi [2]
 
int po [2]
 
int pt [2]
 

Detailed Description

IPv6 enabled sslclient.

Author
web, fefe, feh

Definition in file sslclient.c.

Macro Definition Documentation

◆ WHO

#define WHO   "sslclient"

Definition at line 38 of file sslclient.c.

Function Documentation

◆ env()

void env ( const char *  s,
const char *  t 
)

Definition at line 43 of file sslclient.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *const *  argv 
)

Definition at line 155 of file sslclient.c.

Here is the call graph for this function:

◆ nomem()

void nomem ( void  )

Definition at line 40 of file sslclient.c.

Here is the caller graph for this function:

◆ passwd_cb()

int passwd_cb ( char *  buf,
int  size,
int  rwflag,
void *  userdata 
)

Definition at line 147 of file sslclient.c.

Here is the caller graph for this function:

◆ read_passwd()

void read_passwd ( void  )

Definition at line 137 of file sslclient.c.

Here is the caller graph for this function:

◆ read_pwdfile()

void read_pwdfile ( )

Definition at line 120 of file sslclient.c.

Here is the caller graph for this function:

◆ usage()

void usage ( void  )

Definition at line 47 of file sslclient.c.

Here is the caller graph for this function:

Variable Documentation

◆ b

buffer b

Definition at line 103 of file sslclient.c.

◆ bspace

char bspace[16]

Definition at line 102 of file sslclient.c.

◆ cadir

const char* cadir = auto_cadir

Definition at line 110 of file sslclient.c.

◆ cafile

const char* cafile = auto_cafile

Definition at line 109 of file sslclient.c.

◆ certfile

const char* certfile = 0

Definition at line 106 of file sslclient.c.

◆ ciphers

const char* ciphers = auto_ciphers

Definition at line 111 of file sslclient.c.

◆ ctimeout

unsigned long ctimeout[2] = { 2, 58 }

Definition at line 76 of file sslclient.c.

◆ ctx

SSL_CTX* ctx

Definition at line 105 of file sslclient.c.

◆ flag3

int flag3 = 0

Definition at line 71 of file sslclient.c.

◆ flagdelay

int flagdelay = 0

Definition at line 68 of file sslclient.c.

◆ flagname

int flagname = 1

Definition at line 89 of file sslclient.c.

◆ flagremotehost

int flagremotehost = 1

Definition at line 70 of file sslclient.c.

◆ flagremoteinfo

int flagremoteinfo = 0

Definition at line 69 of file sslclient.c.

◆ flagservercert

int flagservercert = 1

Definition at line 90 of file sslclient.c.

◆ flagsni

int flagsni = 0

Definition at line 74 of file sslclient.c.

◆ flagsslenv

int flagsslenv = 0

Definition at line 72 of file sslclient.c.

◆ flagtcpenv

int flagtcpenv = 0

Definition at line 73 of file sslclient.c.

◆ forcelocal

const char* forcelocal = 0

Definition at line 83 of file sslclient.c.

◆ hostname

const char* hostname

Definition at line 88 of file sslclient.c.

◆ iplocal

char iplocal[16] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 }

Definition at line 81 of file sslclient.c.

◆ ipremote

char ipremote[16]

Definition at line 85 of file sslclient.c.

◆ itimeout

unsigned long itimeout = 26

Definition at line 75 of file sslclient.c.

◆ keyfile

const char* keyfile = 0

Definition at line 107 of file sslclient.c.

◆ keypass

const char* keypass = 0

Definition at line 108 of file sslclient.c.

◆ loopback

const char* loopback = "127.0.0.1"

Definition at line 80 of file sslclient.c.

◆ match

int match = 0

Definition at line 113 of file sslclient.c.

◆ netif

uint32 netif = 0

Definition at line 78 of file sslclient.c.

◆ password

stralloc password = {0}

Definition at line 112 of file sslclient.c.

◆ pi

int pi[2]

Definition at line 116 of file sslclient.c.

◆ po

int po[2]

Definition at line 117 of file sslclient.c.

◆ portlocal

uint16 portlocal = 0

Definition at line 82 of file sslclient.c.

◆ portremote

uint16 portremote

Definition at line 86 of file sslclient.c.

◆ progtimeout

unsigned int progtimeout = 3600

Definition at line 77 of file sslclient.c.

◆ pt

int pt[2]

Definition at line 118 of file sslclient.c.

◆ seed

char seed[128]

Definition at line 100 of file sslclient.c.

◆ verbosity

int verbosity = 1

Definition at line 67 of file sslclient.c.

◆ verifydepth

int verifydepth = 1

Definition at line 114 of file sslclient.c.