Skip to content

Commit

Permalink
fix no-ec build
Browse files Browse the repository at this point in the history
  • Loading branch information
sftcd committed Dec 14, 2023
1 parent 61fbaf9 commit 7ac547d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fuzz/echserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ int FuzzerInitialize(int *argc, char ***argv)
return 1;
}

#if !defined(OPENSSL_NO_ECH) && !defined(OPENSSL_NO_EC)
/*
* We'll use the left-half of the input buffer as the
* outer CH, HPKE encrypt the right-half and add that
Expand Down Expand Up @@ -659,6 +660,7 @@ static int make_ch_with_ech(unsigned char **out, size_t *outlen,
OSSL_HPKE_CTX_free(hctx);
return res;
}
#endif

int FuzzerTestOneInput(const uint8_t *buf, size_t len)
{
Expand Down

0 comments on commit 7ac547d

Please sign in to comment.