Skip to content
Snippets Groups Projects
Commit a2cc8b13 authored by Anton Wuerfel's avatar Anton Wuerfel
Browse files

Make PGP macros global


This commit moves the macros PGP_SIGNATURE and PGP_MESSAGE to gpg-interface.h to
make them publicly reachable, which is necessary for RFC3161 time-stamping.

When verifying an RFC3161 time-stamp signature, a SHA-1 hash has to be generated
over the git object excluding a possible PGP signature, which makes it necessary
to detect the beginning of this PGP signature.

Signed-off-by: default avatarAnton Würfel <anton.wuerfel@fau.de>
Signed-off-by: default avatarPhillip Raffeck <phillip.raffeck@fau.de>
parent 085d29fb
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
static char *configured_signing_key; static char *configured_signing_key;
static const char *gpg_program = "gpg"; static const char *gpg_program = "gpg";
#define PGP_SIGNATURE "-----BEGIN PGP SIGNATURE-----"
#define PGP_MESSAGE "-----BEGIN PGP MESSAGE-----"
void signature_check_clear(struct signature_check *sigc) void signature_check_clear(struct signature_check *sigc)
{ {
free(sigc->payload); free(sigc->payload);
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
#define GPG_VERIFY_VERBOSE 1 #define GPG_VERIFY_VERBOSE 1
#define GPG_VERIFY_RAW 2 #define GPG_VERIFY_RAW 2
#define PGP_SIGNATURE "-----BEGIN PGP SIGNATURE-----"
#define PGP_MESSAGE "-----BEGIN PGP MESSAGE-----"
struct signature_check { struct signature_check {
char *payload; char *payload;
char *gpg_output; char *gpg_output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment