Defines | Functions

tls_bio.h File Reference

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

#include <openssl/bio.h>
Include dependency graph for tls_bio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Functions


Detailed Description

Definition in file tls_bio.h.


Define Documentation

#define tls_mbuf_init (   mb,
  b,
  sz 
)
Value:
do { \
                (mb)->buf = (b); \
                (mb)->size = (sz); \
                (mb)->pos = 0; \
                (mb)->used = 0; \
        } while(0)
Parameters:
mb - struct tls_mbuf pointer that will be intialized.
b - buffer (unsigned char*).
sz - suze of the buffer (int). WARNING: the buffer will not be copied, but referenced.

Definition at line 59 of file tls_bio.h.

Referenced by tls_encode_f(), tls_h_close(), and tls_read_f().


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:

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:

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: