Functions

tls_bio.c File Reference

openssl BIOs for reading/writing via a fixed memory buffer. More...

#include "tls_bio.h"
#include "../../compiler_opt.h"
#include "../../dprint.h"
#include "../../ut.h"
#include "tls_cfg.h"
Include dependency graph for tls_bio.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file tls_bio.c.


Function Documentation

BIO_METHOD* tls_BIO_mbuf ( void   ) 

Definition at line 87 of file tls_bio.c.

Referenced by tls_BIO_new_mbuf().

Here is the caller graph for this function:

static int tls_bio_mbuf_free ( BIO *  b  )  [static]

(internal openssl use via the tls_mbuf method)

Returns:
1 on success, 0 on error.

Definition at line 163 of file tls_bio.c.

static int tls_bio_mbuf_new ( BIO *  b  )  [static]

(internal openssl use via the tls_mbuf method)

Returns:
1 on success, 0 on error.

Definition at line 139 of file tls_bio.c.

static int tls_bio_mbuf_read ( BIO *  b,
char *  dst,
int  dst_len 
) [static]

(internal openssl use via the tls_mbuf method)

Returns:
bytes read on success (0< ret <=dst_len), -1 on empty buffer & sets should_retry_read, -1 on some other errors (w/o should_retry_read set).

Definition at line 183 of file tls_bio.c.

int tls_BIO_mbuf_set ( BIO *  b,
struct tls_mbuf *  rd,
struct tls_mbuf *  wr 
)
Returns:
1 on success, 0 on error (openssl BIO convention).

Definition at line 117 of file tls_bio.c.

Referenced by tls_BIO_new_mbuf(), and tls_set_mbufs().

Here is the caller graph for this function:

static int tls_bio_mbuf_write ( BIO *  b,
const char *  src,
int  src_len 
) [static]

(internal openssl use via the tls_mbuf method)

Returns:
bytes written on success (0<= ret <=src_len), -1 on error or buffer full (in this case sets should_retry_write).

Definition at line 236 of file tls_bio.c.

BIO* tls_BIO_new_mbuf ( struct tls_mbuf *  rd,
struct tls_mbuf *  wr 
)
Returns:
new BIO on success (!=0), 0 on error.

Definition at line 97 of file tls_bio.c.

References tls_BIO_mbuf(), and tls_BIO_mbuf_set().

Referenced by tls_complete_init().

Here is the call graph for this function:

Here is the caller graph for this function: