summaryrefslogtreecommitdiff
path: root/src/reclaim/pabc_helper.h
blob: 491672a8b90a1c52f5f6be868cb65ad047dfeca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "platform.h"
#include "gnunet_util_lib.h"
#include <libpabc/libpabc.h>

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#define PABC_ISK_EXT ".isk"

#define PABC_PP_EXT ".pp"

#define PABC_USR_EXT ".usr"

#define PABC_ATTR_DELIM "="

enum GNUNET_GenericReturnValue
PABC_write_public_parameters (char const *const pp_name,
                              struct pabc_public_parameters *const pp);


enum GNUNET_GenericReturnValue
PABC_load_public_parameters (struct pabc_context *const ctx,
                             char const *const pp_name,
                             struct pabc_public_parameters **pp);

enum GNUNET_GenericReturnValue
PABC_write_usr_ctx (char const *const user_name,
                    char const *const pp_name,
                    struct pabc_context const *const ctx,
                    struct pabc_public_parameters const *const
                    pp,
                    struct pabc_user_context *const usr_ctx);

enum GNUNET_GenericReturnValue
PABC_read_usr_ctx (char const *const user_name,
                   char const *const pp_name,
                   struct pabc_context const *const ctx,
                   struct pabc_public_parameters const *const
                   pp,
                   struct pabc_user_context **usr_ctx);