util.c File Reference

#include <openpgpsdk/util.h>
#include <openpgpsdk/packet-parse.h>
#include <openpgpsdk/crypto.h>
#include <openpgpsdk/create.h>
#include <openpgpsdk/errors.h>
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include <openpgpsdk/final.h>

Functions

char * ops_str_from_map (int type, ops_map_t *map)
 Searches the given map for the given type.
void hexdump (const unsigned char *src, size_t length)
void ops_init (void)
 Initialises OpenPGP::SDK.
void ops_finish (void)
 Closes down OpenPGP::SDK.
void * ops_mallocz (size_t n)
 mallocs and zeros memory
void ops_reader_push_sum16 (ops_parse_info_t *pinfo)
unsigned short ops_reader_pop_sum16 (ops_parse_info_t *pinfo)

Detailed Description


Function Documentation

void ops_finish void   ) 
 

Closes down OpenPGP::SDK.

Close down OpenPGP:SDK, release any resources under the control of the library. No OpenPGP:SDK function other than ops_init() should be called after this function.

void ops_init void   ) 
 

Initialises OpenPGP::SDK.

To be called before any other OPS function.

Initialises OpenPGP::SDK and the underlying openssl library.

void* ops_mallocz size_t  n  ) 
 

mallocs and zeros memory

Parameters:
n Number of bytes to be alloc-ed.
Returns:
Pointer to new memory.
Note:
Should be freed after use with free().


Generated on Tue May 21 00:00:02 2013 for OpenPGP:SDK by  doxygen 1.4.6