Skip to content

Commit

Permalink
Invert hash registration order
Browse files Browse the repository at this point in the history
  • Loading branch information
npmccallum committed Oct 18, 2016
1 parent 2b462a4 commit 33a4c33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/openssl/sha.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ static void __attribute__((constructor))
constructor(void)
{
static jose_jwk_hasher_t hashes[] = {
{ NULL, "sha1", SHA_DIGEST_LENGTH, sha1 },
{ NULL, "sha224", SHA224_DIGEST_LENGTH, sha224 },
{ NULL, "sha256", SHA256_DIGEST_LENGTH, sha256 },
{ NULL, "sha384", SHA384_DIGEST_LENGTH, sha384 },
{ NULL, "sha512", SHA512_DIGEST_LENGTH, sha512 },
{ NULL, "sha384", SHA384_DIGEST_LENGTH, sha384 },
{ NULL, "sha256", SHA256_DIGEST_LENGTH, sha256 },
{ NULL, "sha224", SHA224_DIGEST_LENGTH, sha224 },
{ NULL, "sha1", SHA_DIGEST_LENGTH, sha1 },
{}
};

Expand Down

0 comments on commit 33a4c33

Please sign in to comment.