|
Revision 557
(checked in by rachel, 5 years ago)
|
Namechange of struct for better readability.
|
| Line | |
|---|
| 1 |
#ifndef __OPS_READERWRITER_H__ |
|---|
| 2 |
#define __OPS_READERWRITER_H__ |
|---|
| 3 |
|
|---|
| 4 |
#include <openpgpsdk/memory.h> |
|---|
| 5 |
#include <openpgpsdk/create.h> |
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
struct ops_writer_info |
|---|
| 12 |
{ |
|---|
| 13 |
ops_writer_t *writer; |
|---|
| 14 |
ops_writer_finaliser_t *finaliser; |
|---|
| 15 |
ops_writer_destroyer_t *destroyer; |
|---|
| 16 |
void *arg; |
|---|
| 17 |
ops_writer_info_t *next; |
|---|
| 18 |
}; |
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
struct ops_create_info |
|---|
| 25 |
{ |
|---|
| 26 |
ops_writer_info_t winfo; |
|---|
| 27 |
ops_error_t *errors; |
|---|
| 28 |
}; |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
ops_boolean_t ops_write_mdc(const unsigned char *hashed, |
|---|
| 32 |
ops_create_info_t* info); |
|---|
| 33 |
ops_boolean_t ops_write_se_ip_pktset(const unsigned char *data, |
|---|
| 34 |
const unsigned int len, |
|---|
| 35 |
ops_crypt_t *crypt, |
|---|
| 36 |
ops_create_info_t *info); |
|---|
| 37 |
void ops_writer_push_encrypt_crypt(ops_create_info_t *cinfo, |
|---|
| 38 |
ops_crypt_t *crypt); |
|---|
| 39 |
void ops_writer_push_encrypt_se_ip(ops_create_info_t *cinfo, |
|---|
| 40 |
const ops_keydata_t *pub_key); |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
void ops_setup_memory_write(ops_create_info_t **cinfo, ops_memory_t **mem, size_t bufsz); |
|---|
| 45 |
void ops_teardown_memory_write(ops_create_info_t *cinfo, ops_memory_t *mem); |
|---|
| 46 |
|
|---|
| 47 |
void ops_setup_memory_read(ops_parse_info_t **pinfo, ops_memory_t *mem, |
|---|
| 48 |
ops_parse_cb_return_t callback(const ops_parser_content_t *, ops_parse_cb_info_t *)); |
|---|
| 49 |
void ops_teardown_memory_read(ops_parse_info_t *pinfo, ops_memory_t *mem); |
|---|
| 50 |
|
|---|
| 51 |
#endif |
|---|