[test suite] add fko_basic.c file to the FKO wrapper

This commit is contained in:
Michael Rash 2014-05-22 08:24:16 -05:00
parent bbe5626566
commit a2f2777e9f
2 changed files with 21 additions and 1 deletions

View File

@ -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 \

View 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;
}