[test suite] add fko_basic.c file to the FKO wrapper
This commit is contained in:
parent
bbe5626566
commit
a2f2777e9f
@ -283,8 +283,9 @@ EXTRA_DIST = \
|
||||
test/conf/spa_replay.pcap \
|
||||
test/fko-wrapper/Makefile \
|
||||
test/fko-wrapper/fko_wrapper.c \
|
||||
test/fko-wrapper/fko_basic.c \
|
||||
test/fko-wrapper/run.sh \
|
||||
test/fko-wrapper/run_valgrind.sh \
|
||||
test/fko-wrapper/run_no_valgrind.sh \
|
||||
test/fuzzing/patches/enable_perl_fko_bogus_packets.patch \
|
||||
test/fuzzing/patches/encoding_append_b64_modified_byte_eq.patch \
|
||||
test/fuzzing/patches/encoding_append_b64_modified_byte.patch \
|
||||
|
||||
19
test/fko-wrapper/fko_basic.c
Normal file
19
test/fko-wrapper/fko_basic.c
Normal file
@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "fko.h"
|
||||
|
||||
int main(void) {
|
||||
fko_ctx_t ctx = NULL;
|
||||
int res = 0;
|
||||
|
||||
res = fko_new(&ctx);
|
||||
|
||||
if (res == FKO_SUCCESS)
|
||||
printf("[+] fko_new(): %s\n", fko_errstr(res));
|
||||
else
|
||||
printf("[-] fko_new(): %s\n", fko_errstr(res));
|
||||
|
||||
fko_destroy(ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user