Skip to content

Commit

Permalink
CMD: Run ED25519 signing test only when OpenSSL version is compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Jul 3, 2024
1 parent f4ca831 commit 54ee39d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tool/yubico-piv-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,7 @@ static bool test_signature(ykpiv_state *state, enum enum_slot slot,
}
}
break;
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
case YKPIV_ALGO_ED25519:
{
EVP_MD_CTX *ctx;
Expand All @@ -2096,6 +2097,7 @@ static bool test_signature(ykpiv_state *state, enum enum_slot slot,
}
}
break;
#endif
default:
fprintf(stderr, "Unknown algorithm.\n");
goto test_out;
Expand Down

0 comments on commit 54ee39d

Please sign in to comment.