libksba  1.6.0
About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.
  Fossies Dox: libksba-1.6.0.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ksba_reader_s Struct Reference

#include <reader.h>

Data Fields

int eof
 
int error
 
unsigned long nread
 
struct {
   unsigned char *   buf
 
   size_t   size
 
   size_t   length
 
   size_t   readpos
 
unread
 
enum reader_type type
 
union {
   struct {
      unsigned char *   buffer
 
      size_t   size
 
      size_t   readpos
 
   }   mem
 
   int   fd
 
   FILE *   file
 
   struct {
      int(*   fnc )(void *, char *, size_t, size_t *)
 
      void *   value
 
   }   cb
 
u
 
void(* notify_cb )(void *, ksba_reader_t)
 
void * notify_cb_value
 

Detailed Description

Definition at line 45 of file reader.h.

Field Documentation

◆ buf

unsigned char* ksba_reader_s::buf

◆ buffer

unsigned char* ksba_reader_s::buffer

Definition at line 58 of file reader.h.

Referenced by _ksba_reader_read(), _ksba_reader_release(), and _ksba_reader_set_mem().

◆ 

ksba_reader_s::cb { ... } struct

◆ eof

◆ error

int ksba_reader_s::error

Definition at line 47 of file reader.h.

Referenced by _ksba_reader_clear(), _ksba_reader_error(), and _ksba_reader_read().

◆ fd

int ksba_reader_s::fd

Definition at line 62 of file reader.h.

Referenced by _ksba_reader_read(), and _ksba_reader_set_fd().

◆ file

FILE* ksba_reader_s::file

Definition at line 63 of file reader.h.

Referenced by _ksba_reader_read(), and _ksba_reader_set_file().

◆ fnc

int(* ksba_reader_s::fnc) (void *, char *, size_t, size_t *)

Definition at line 65 of file reader.h.

Referenced by _ksba_reader_read(), and _ksba_reader_set_cb().

◆ length

size_t ksba_reader_s::length

Definition at line 52 of file reader.h.

Referenced by _ksba_reader_clear(), _ksba_reader_read(), and _ksba_reader_unread().

◆ 

ksba_reader_s::mem { ... } struct

◆ notify_cb

void(* ksba_reader_s::notify_cb) (void *, ksba_reader_t)

Definition at line 69 of file reader.h.

Referenced by _ksba_reader_release(), and ksba_reader_set_release_notify().

◆ notify_cb_value

void* ksba_reader_s::notify_cb_value

Definition at line 70 of file reader.h.

Referenced by _ksba_reader_release(), and ksba_reader_set_release_notify().

◆ nread

unsigned long ksba_reader_s::nread

◆ readpos

size_t ksba_reader_s::readpos

Definition at line 53 of file reader.h.

Referenced by _ksba_reader_read(), _ksba_reader_set_mem(), and _ksba_reader_unread().

◆ size

size_t ksba_reader_s::size

Definition at line 51 of file reader.h.

Referenced by _ksba_reader_read(), _ksba_reader_set_mem(), and _ksba_reader_unread().

◆ type

◆ 

◆ 

ksba_reader_s::unread { ... } struct

◆ value

void* ksba_reader_s::value

Definition at line 66 of file reader.h.

Referenced by _ksba_reader_read(), and _ksba_reader_set_cb().


The documentation for this struct was generated from the following file: