Skip to content

Commit

Permalink
Remove OpenSSL version check if it does not cause compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Jan 24, 2024
1 parent 085bfd6 commit 44e3215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,12 @@ int get_hashnid(enum enum_hash hash, unsigned char algorithm) {
default:
return 0;
}
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
case YKPIV_ALGO_ED25519:
return NID_ED25519;
case YKPIV_ALGO_X25519:
return NID_X25519;
#endif
default:
return 0;
}
Expand Down

0 comments on commit 44e3215

Please sign in to comment.