Skip to content

Commit

Permalink
what is wrong with sha512?
Browse files Browse the repository at this point in the history
  • Loading branch information
comotion committed Mar 24, 2011
1 parent 387b0f2 commit 9ac6b89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.o
6 changes: 5 additions & 1 deletion gpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 9ac6b89

Please sign in to comment.