root/openpgpsdk/trunk/tests/tests.h

Revision 484 (checked in by rachel, 6 years ago)

Added explicit test for Encrypted PK Session Key
Some refactoring

Line 
1 #ifndef __TESTS__
2 #define __TESTS_
3
4 #include <assert.h>
5 #include <stdio.h>
6 #include <string.h>
7 #include <stdlib.h>
8 #include <unistd.h>
9 #include <fcntl.h>
10 #include <sys/stat.h>
11 #include <sys/types.h>
12
13 #include <openpgpsdk/memory.h>
14 #include <openpgpsdk/create.h>
15
16 int mktmpdir();
17 extern char dir[];
18 void create_testtext(const char *text, char *buf, const int maxlen);
19 void create_testdata(const char *text, unsigned char *buf, const int maxlen);
20 #define MAXBUF 128
21
22 ops_parse_cb_return_t
23 callback_general(const ops_parser_content_t *content_,ops_parse_cb_info_t *cbinfo);
24 ops_parse_cb_return_t
25 callback_cmd_get_secret_key(const ops_parser_content_t *content_,ops_parse_cb_info_t *cbinfo);
26 ops_parse_cb_return_t
27 callback_cmd_get_secret_key_passphrase(const ops_parser_content_t *content_,ops_parse_cb_info_t *cbinfo);
28
29 ops_keyring_t pub_keyring;
30 ops_keyring_t sec_keyring;
31 #endif
32
Note: See TracBrowser for help on using the browser.