* enable signature verification (WIP)

This commit is contained in:
djcb
2012-08-30 12:53:52 +03:00
parent ed516d54d7
commit adc23614a1
7 changed files with 130 additions and 610 deletions

View File

@ -52,6 +52,18 @@ enum _MuMsgPartType {
typedef enum _MuMsgPartType MuMsgPartType;
/* the signature status */
enum _MuMsgPartSigStatus {
MU_MSG_PART_SIG_STATUS_UNSIGNED = 0,
MU_MSG_PART_SIG_STATUS_GOOD,
MU_MSG_PART_SIG_STATUS_BAD,
MU_MSG_PART_SIG_STATUS_ERROR,
MU_MSG_PART_SIG_STATUS_FAIL
};
typedef enum _MuMsgPartSigStatus MuMsgPartSigStatus;
struct _MuMsgPart {
/* index of this message part */
@ -69,10 +81,9 @@ struct _MuMsgPart {
gpointer data; /* opaque data */
MuMsgPartType part_type;
MuMsgPartType part_type;
MuMsgPartSigStatus sig_status;
/* crypto stuff */
GSList *sig_infos; /* list of MuMsgPartSig */
};
typedef struct _MuMsgPart MuMsgPart;