]> the.earth.li Git - onak.git/blobdiff - sigcheck.c
Switch to passing the key packet in when checking a hash signature
[onak.git] / sigcheck.c
index 74c2e2bf295cd24ceca0b98ba7c6f54a2c28d0cc..963eeffe4beb3ef19f81eed1e5cb756c5d16ca4f 100644 (file)
@@ -278,7 +278,7 @@ static onak_status_t onak_parse_key_material(struct openpgp_packet *pk,
        return ret;
 }
 
-onak_status_t onak_check_hash_sig(struct openpgp_publickey *sigkey,
+onak_status_t onak_check_hash_sig(struct openpgp_packet *sigkey,
                struct openpgp_packet *sig,
                uint8_t *hash,
                uint8_t hashtype)
@@ -291,7 +291,7 @@ onak_status_t onak_check_hash_sig(struct openpgp_publickey *sigkey,
        int len, ofs;
        mpz_t s;
 
-       ret = onak_parse_key_material(sigkey->publickey, &pubkey);
+       ret = onak_parse_key_material(sigkey, &pubkey);
        if (ret != ONAK_E_OK) {
                return ret;
        }