Protecting client/server fuzz targts with ifdefs
diff --git a/tests/fuzz/fuzz_server.c b/tests/fuzz/fuzz_server.c
index eef0002..0a2f3a9 100644
--- a/tests/fuzz/fuzz_server.c
+++ b/tests/fuzz/fuzz_server.c
@@ -28,6 +28,7 @@
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+#ifdef MBEDTLS_SSL_SRV_C
int ret;
size_t len;
mbedtls_ssl_context ssl;
@@ -174,5 +175,10 @@
mbedtls_ssl_config_free( &conf );
mbedtls_ssl_free( &ssl );
+#else
+ (void) Data;
+ (void) Size;
+#endif //MBEDTLS_SSL_SRV_C
+
return 0;
}