diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/gpg.c b/gpg.c index 287523f..b78497d 100644 --- a/gpg.c +++ b/gpg.c @@ -170,7 +170,11 @@ int gpgCheckSignResult(SHOWERROR_FN showerror_cb, gpgme_sign_result_t result, error = 1; } if (!error && - result -> signatures -> hash_algo != GPGME_MD_SHA1) + result -> signatures -> hash_algo != GPGME_MD_SHA1 && + result -> signatures -> hash_algo != GPGME_MD_SHA256 && + result -> signatures -> hash_algo != GPGME_MD_SHA384 && + result -> signatures -> hash_algo != GPGME_MD_SHA512 + ) { switch (result -> signatures -> hash_algo) {