#include "platform.h"
#include "pabc_helper.h"
#include <pwd.h>
#include <stdlib.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
static const char * | get_homedir () |
static enum GNUNET_GenericReturnValue | write_file (char const *const filename, const char *buffer) |
static enum GNUNET_GenericReturnValue | init_pabc_dir () |
static const char * | get_pabcdir () |
enum GNUNET_GenericReturnValue | read_file (char const *const filename, char **buffer) |
struct pabc_public_parameters * | PABC_read_issuer_ppfile (const char *f, struct pabc_context *const ctx) |
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_public_parameters (char const *const pp_name, struct pabc_public_parameters *const pp) |
enum GNUNET_GenericReturnValue | PABC_write_usr_ctx (char const *const usr_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 usr_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) |
Variables | |
static char | pabc_dir [4096+1] |
|
static |
Definition at line 16 of file pabc_helper.c.
References getenv().
|
static |
Definition at line 16 of file pabc_helper.c.
|
static |
Definition at line 16 of file pabc_helper.c.
Referenced by get_pabcdir().
|
static |
Definition at line 63 of file pabc_helper.c.
References init_pabc_dir(), and pabc_dir.
enum GNUNET_GenericReturnValue read_file | ( | char const *const | filename, |
char ** | buffer | ||
) |
Definition at line 63 of file pabc_helper.c.
Referenced by main(), netjail_stop_run(), PABC_load_public_parameters(), and start_helper().
struct pabc_public_parameters* PABC_read_issuer_ppfile | ( | const char * | f, |
struct pabc_context *const | ctx | ||
) |
Definition at line 106 of file pabc_helper.c.
enum GNUNET_GenericReturnValue PABC_load_public_parameters | ( | struct pabc_context *const | ctx, |
char const *const | pp_name, | ||
struct pabc_public_parameters ** | pp | ||
) |
Definition at line 106 of file pabc_helper.c.
References ctx, removetrailingwhitespace::f, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, GNUNET_OK, and read_file().
Referenced by pabc_create_presentation().
enum GNUNET_GenericReturnValue PABC_write_public_parameters | ( | char const *const | pp_name, |
struct pabc_public_parameters *const | pp | ||
) |
Definition at line 106 of file pabc_helper.c.
Referenced by cr_cont().
enum GNUNET_GenericReturnValue PABC_write_usr_ctx | ( | char const *const | usr_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 | ||
) |
Definition at line 106 of file pabc_helper.c.
Referenced by cr_cont().
enum GNUNET_GenericReturnValue PABC_read_usr_ctx | ( | char const *const | usr_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 | ||
) |
Definition at line 106 of file pabc_helper.c.
Referenced by cr_cont(), and pabc_create_presentation().
|
static |
Definition at line 13 of file pabc_helper.c.
Referenced by get_pabcdir().