#include <unistd.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "openpgphelper.h"
#include "openpgpsdk-0.9/include/openpgpsdk/defs.h"
#include "openpgpsdk-0.9/include/openpgpsdk/signature.h"
#include "openpgpsdk-0.9/include/openpgpsdk/validate.h"
Defines | |
#define | DEFAULT_ROOT_SEC_KEYRING "/root/.gnupg/secring.gpg" |
#define | ENV_GNUPGHOME "GNUPGHOME" |
#define | MAXPATH 512 |
Functions | |
ops_keyring_t * | opepgp_obtain_secret_keyring (void) |
size_t | openpgp_do_clearsign (ops_keyring_t *secring, const char *opt_userid, const char *opt_passphrase, const char *input_buf, const size_t input_len, char **out_buf) |
ops_keyring_t * | opepgp_obtain_public_keyring (void) |
size_t | openpgp_do_clearsign_safe (const char *in_buf, const size_t in_len, const char *pass, const char *user, char **out_buf) |
int | openpgp_do_validate_safe (const char *mem_in, size_t len_in, int has_armour) |
#define DEFAULT_ROOT_SEC_KEYRING "/root/.gnupg/secring.gpg" |
#define ENV_GNUPGHOME "GNUPGHOME" |
#define MAXPATH 512 |
size_t openpgp_do_clearsign | ( | ops_keyring_t * | secring, | |
const char * | opt_userid, | |||
const char * | opt_passphrase, | |||
const char * | input_buf, | |||
const size_t | input_len, | |||
char ** | out_buf | |||
) |
size_t openpgp_do_clearsign_safe | ( | const char * | in_buf, | |
const size_t | in_len, | |||
const char * | pass, | |||
const char * | user, | |||
char ** | out_buf | |||
) |
int openpgp_do_validate_safe | ( | const char * | mem_in, | |
size_t | len_in, | |||
int | has_armour | |||
) |
ops_keyring_t* opepgp_obtain_public_keyring | ( | void | ) |
ops_keyring_t * opepgp_obtain_secret_keyring | ( | void | ) |