xref: /freebsd-src/crypto/openssh/regress/misc/fuzz-harness/agent_fuzz.cc (revision 19261079b74319502c6ffa1249920079f0f69a72)
1*19261079SEd Maste // cc_fuzz_target test for ssh-agent.
2*19261079SEd Maste extern "C" {
3*19261079SEd Maste 
4*19261079SEd Maste #include <stdint.h>
5*19261079SEd Maste #include <sys/types.h>
6*19261079SEd Maste 
7*19261079SEd Maste extern void test_one(const uint8_t* s, size_t slen);
8*19261079SEd Maste 
LLVMFuzzerTestOneInput(const uint8_t * s,size_t slen)9*19261079SEd Maste int LLVMFuzzerTestOneInput(const uint8_t* s, size_t slen)
10*19261079SEd Maste {
11*19261079SEd Maste 	test_one(s, slen);
12*19261079SEd Maste 	return 0;
13*19261079SEd Maste }
14*19261079SEd Maste 
15*19261079SEd Maste } // extern
16