io_tls.c File Reference

#include "io_tls_p.h"
#include <gwenhywfar/iolayer_be.h>
#include <gwenhywfar/io_codec_be.h>
#include <gwenhywfar/iorequest_be.h>
#include <gwenhywfar/io_socket.h>
#include "i18n_l.h"
#include <gwenhywfar/gwenhywfar.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/gui.h>
#include <gwenhywfar/pathmanager.h>
#include <gwenhywfar/directory.h>
#include <assert.h>
#include <errno.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#include <gwenhywfar/text.h>

Go to the source code of this file.

Functions

int GWEN_Io_LayerTls__readFile (const char *fname, GWEN_BUFFER *buf)
int GWEN_Io_LayerTls_AddRequest (GWEN_IO_LAYER *io, GWEN_IO_REQUEST *r)
int GWEN_Io_LayerTls_Decode (GWEN_IO_LAYER *io, uint8_t *pBuffer, uint32_t lBuffer)
int GWEN_Io_LayerTls_DelRequest (GWEN_IO_LAYER *io, GWEN_IO_REQUEST *r)
int GWEN_Io_LayerTls_Encode (GWEN_IO_LAYER *io, const uint8_t *pBuffer, uint32_t lBuffer)
GWENHYWFAR_CB void GWEN_Io_LayerTls_freeData (void *bp, void *p)
const char * GWEN_Io_LayerTls_GetDhParamFile (const GWEN_IO_LAYER *io)
const char * GWEN_Io_LayerTls_GetLocalCertFile (const GWEN_IO_LAYER *io)
const char * GWEN_Io_LayerTls_GetLocalKeyFile (const GWEN_IO_LAYER *io)
const char * GWEN_Io_LayerTls_GetLocalTrustFile (const GWEN_IO_LAYER *io)
int GWEN_Io_LayerTls_GetPeerCert (GWEN_IO_LAYER *io, uint32_t guiid)
GWEN_SSLCERTDESCRGWEN_Io_LayerTls_GetPeerCertDescr (const GWEN_IO_LAYER *io)
const char * GWEN_Io_LayerTls_GetRemoteHostName (const GWEN_IO_LAYER *io)
int GWEN_Io_LayerTls_HasWaitingRequests (GWEN_IO_LAYER *io)
GWEN_IO_LAYERGWEN_Io_LayerTls_new (GWEN_IO_LAYER *baseLayer)
int GWEN_Io_LayerTls_Prepare (GWEN_IO_LAYER *io)
ssize_t GWEN_Io_LayerTls_Pull (gnutls_transport_ptr_t p, void *buf, size_t len)
ssize_t GWEN_Io_LayerTls_Push (gnutls_transport_ptr_t p, const void *buf, size_t len)
void GWEN_Io_LayerTls_SetDhParamFile (GWEN_IO_LAYER *io, const char *s)
void GWEN_Io_LayerTls_SetLocalCertFile (GWEN_IO_LAYER *io, const char *s)
void GWEN_Io_LayerTls_SetLocalKeyFile (GWEN_IO_LAYER *io, const char *s)
void GWEN_Io_LayerTls_SetLocalTrustFile (GWEN_IO_LAYER *io, const char *s)
void GWEN_Io_LayerTls_SetRemoteHostName (GWEN_IO_LAYER *io, const char *s)
GWEN_IO_LAYER_WORKRESULT GWEN_Io_LayerTls_WorkOnRequests (GWEN_IO_LAYER *io)


Function Documentation

int GWEN_Io_LayerTls__readFile ( const char *  fname,
GWEN_BUFFER buf 
)

int GWEN_Io_LayerTls_AddRequest ( GWEN_IO_LAYER io,
GWEN_IO_REQUEST r 
)

int GWEN_Io_LayerTls_Decode ( GWEN_IO_LAYER io,
uint8_t *  pBuffer,
uint32_t  lBuffer 
)

int GWEN_Io_LayerTls_DelRequest ( GWEN_IO_LAYER io,
GWEN_IO_REQUEST r 
)

int GWEN_Io_LayerTls_Encode ( GWEN_IO_LAYER io,
const uint8_t *  pBuffer,
uint32_t  lBuffer 
)

GWENHYWFAR_CB void GWEN_Io_LayerTls_freeData ( void *  bp,
void *  p 
)

Definition at line 77 of file io_tls.c.

References GWEN_SslCertDescr_free().

Referenced by GWEN_Io_LayerTls_new().

const char* GWEN_Io_LayerTls_GetDhParamFile ( const GWEN_IO_LAYER io  ) 

Definition at line 181 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

const char* GWEN_Io_LayerTls_GetLocalCertFile ( const GWEN_IO_LAYER io  ) 

Definition at line 103 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

const char* GWEN_Io_LayerTls_GetLocalKeyFile ( const GWEN_IO_LAYER io  ) 

Definition at line 129 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

const char* GWEN_Io_LayerTls_GetLocalTrustFile ( const GWEN_IO_LAYER io  ) 

Definition at line 155 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

int GWEN_Io_LayerTls_GetPeerCert ( GWEN_IO_LAYER io,
uint32_t  guiid 
)

GWEN_SSLCERTDESCR* GWEN_Io_LayerTls_GetPeerCertDescr ( const GWEN_IO_LAYER io  ) 

Definition at line 233 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

const char* GWEN_Io_LayerTls_GetRemoteHostName ( const GWEN_IO_LAYER io  ) 

Definition at line 207 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

int GWEN_Io_LayerTls_HasWaitingRequests ( GWEN_IO_LAYER io  ) 

Definition at line 1117 of file io_tls.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Io_LayerTls_new().

GWEN_IO_LAYER* GWEN_Io_LayerTls_new ( GWEN_IO_LAYER baseLayer  ) 

int GWEN_Io_LayerTls_Prepare ( GWEN_IO_LAYER io  ) 

ssize_t GWEN_Io_LayerTls_Pull ( gnutls_transport_ptr_t  p,
void *  buf,
size_t  len 
)

ssize_t GWEN_Io_LayerTls_Push ( gnutls_transport_ptr_t  p,
const void *  buf,
size_t  len 
)

void GWEN_Io_LayerTls_SetDhParamFile ( GWEN_IO_LAYER io,
const char *  s 
)

Definition at line 193 of file io_tls.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by GWEN_Io_LayerTls_WorkOnRequests().

void GWEN_Io_LayerTls_SetLocalCertFile ( GWEN_IO_LAYER io,
const char *  s 
)

Definition at line 115 of file io_tls.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by GWEN_Io_LayerTls_WorkOnRequests().

void GWEN_Io_LayerTls_SetLocalKeyFile ( GWEN_IO_LAYER io,
const char *  s 
)

Definition at line 141 of file io_tls.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by GWEN_Io_LayerTls_WorkOnRequests().

void GWEN_Io_LayerTls_SetLocalTrustFile ( GWEN_IO_LAYER io,
const char *  s 
)

Definition at line 167 of file io_tls.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by GWEN_Io_LayerTls_Prepare(), and GWEN_Io_LayerTls_WorkOnRequests().

void GWEN_Io_LayerTls_SetRemoteHostName ( GWEN_IO_LAYER io,
const char *  s 
)

Definition at line 219 of file io_tls.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by GWEN_HttpSession_Init(), and GWEN_Io_LayerTls_WorkOnRequests().

GWEN_IO_LAYER_WORKRESULT GWEN_Io_LayerTls_WorkOnRequests ( GWEN_IO_LAYER io  ) 


Generated on Wed Sep 3 15:22:00 2008 for gwenhywfar by  doxygen 1.5.6