summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/hashes
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 02:32:56 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 04:25:24 +0200
commit82c206a8e9d16e439c64d9afbf5afabd9ed1f0ce (patch)
tree224f8339a82fe1509621be9a4bd330e80d6a265c /libtomcrypt/hashes
parent7b96171b3bed031238bee741a0a223ea332946b4 (diff)
Use algo_properties_st in hash_get_oid
Diffstat (limited to 'libtomcrypt/hashes')
-rw-r--r--libtomcrypt/hashes/hash_get_oid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtomcrypt/hashes/hash_get_oid.c b/libtomcrypt/hashes/hash_get_oid.c
index 32e4390..c6469ba 100644
--- a/libtomcrypt/hashes/hash_get_oid.c
+++ b/libtomcrypt/hashes/hash_get_oid.c
@@ -46,9 +46,9 @@ static const oid_st sha512_oid = {
.OID = { 2, 16, 840, 1, 101, 3, 4, 2, 3, },
};
-int hash_get_oid(int hash, oid_st *st)
+int hash_get_oid(const struct algo_properties_st *hash, oid_st *st)
{
- switch (hash) {
+ switch (hash->algo) {
case NCR_ALG_SHA1:
memcpy(st, &sha1_oid, sizeof(*st));
break;