return (pgp_canencrypt(type) << 1) | pgp_cansign(type);
}
-static void pgp_free_sig(pgp_sig_t **sigp)
+static void pgp_free_sig(struct PgpSignature **sigp)
{
- pgp_sig_t *sp = NULL, *q = NULL;
+ struct PgpSignature *sp = NULL, *q = NULL;
if (!sigp || !*sigp)
return;
#include "mutt_crypt.h"
-typedef struct pgp_signature
+struct PgpSignature
{
- struct pgp_signature *next;
+ struct PgpSignature *next;
unsigned char sigtype;
unsigned long sid1;
unsigned long sid2;
-} pgp_sig_t;
+};
struct PgpKeyInfo
{
int numalg;
const char *algorithm;
struct PgpKeyInfo *parent;
- struct pgp_signature *sigs;
+ struct PgpSignature *sigs;
struct PgpKeyInfo *next;
};
int flags;
struct PgpKeyInfo *parent;
struct pgp_uid *next;
- struct pgp_signature *sigs;
+ struct PgpSignature *sigs;
} pgp_uid_t;
enum pgp_version
printf("fpr:::::::::%s:\n", p->fingerprint);
}
-static void pgpring_dump_signatures(pgp_sig_t *sig)
+static void pgpring_dump_signatures(struct PgpSignature *sig)
{
for (; sig; sig = sig->next)
{
}
}
-static int pgp_parse_pgp2_sig(unsigned char *buff, size_t l, struct PgpKeyInfo *p, pgp_sig_t *s)
+static int pgp_parse_pgp2_sig(unsigned char *buff, size_t l, struct PgpKeyInfo *p, struct PgpSignature *s)
{
unsigned char sigtype;
time_t sig_gen_time;
return 0;
}
-static int pgp_parse_pgp3_sig(unsigned char *buff, size_t l, struct PgpKeyInfo *p, pgp_sig_t *s)
+static int pgp_parse_pgp3_sig(unsigned char *buff, size_t l, struct PgpKeyInfo *p, struct PgpSignature *s)
{
unsigned char sigtype;
unsigned char skt;
return 0;
}
-static int pgp_parse_sig(unsigned char *buff, size_t l, struct PgpKeyInfo *p, pgp_sig_t *sig)
+static int pgp_parse_sig(unsigned char *buff, size_t l, struct PgpKeyInfo *p, struct PgpSignature *sig)
{
if (!buff || l < 2 || !p)
return -1;
struct PgpKeyInfo *p = NULL;
pgp_uid_t *uid = NULL;
pgp_uid_t **addr = NULL;
- pgp_sig_t **lsig = NULL;
+ struct PgpSignature **lsig = NULL;
fgetpos(fp, &pos);
{
if (lsig)
{
- pgp_sig_t *signature = safe_calloc(sizeof(pgp_sig_t), 1);
+ struct PgpSignature *signature = safe_calloc(sizeof(struct PgpSignature), 1);
*lsig = signature;
lsig = &signature->next;