dtls-{client,server}.c: cleanup, fix compiler warnings

Exclude static objects for ECC when configured without ECC support
to remove compiler warnings.

Change-Id: I780408124b717598c4f10151ad0cf92a1a1edbe8
diff --git a/tests/dtls-client.c b/tests/dtls-client.c
index ab678d3..46a893a 100644
--- a/tests/dtls-client.c
+++ b/tests/dtls-client.c
@@ -46,6 +46,7 @@
 static dtls_context_t *orig_dtls_context = NULL;
+#ifdef DTLS_ECC
 static const unsigned char ecdsa_priv_key[] = {
 			0x41, 0xC1, 0xCB, 0x6B, 0x51, 0x24, 0x7A, 0x14,
 			0x43, 0x21, 0x43, 0x5B, 0x7A, 0x80, 0xE7, 0x14,
@@ -63,6 +64,7 @@
 			0x5A, 0x3C, 0x78, 0x69, 0x35, 0xA7, 0xCF, 0xAB,
 			0xE9, 0x3F, 0x98, 0x72, 0x09, 0xDA, 0xED, 0x0B,
 			0x4F, 0xAB, 0xC3, 0x6F, 0xC7, 0x72, 0xF8, 0x29};
+#endif /* DTLS_ECC */
 #ifdef DTLS_PSK
diff --git a/tests/dtls-server.c b/tests/dtls-server.c
index 1596e18..2914d98 100644
--- a/tests/dtls-server.c
+++ b/tests/dtls-server.c
@@ -20,6 +20,7 @@
 #define DEFAULT_PORT 20220
+#ifdef DTLS_ECC
 static const unsigned char ecdsa_priv_key[] = {
 			0xD9, 0xE2, 0x70, 0x7A, 0x72, 0xDA, 0x6A, 0x05,
 			0x04, 0x99, 0x5C, 0x86, 0xED, 0xDB, 0xE3, 0xEF,
@@ -37,14 +38,7 @@
 			0x1D, 0xDC, 0xF4, 0xF4, 0x2E, 0x2F, 0x26, 0x31,
 			0xD0, 0x43, 0xB1, 0xFB, 0x03, 0xE2, 0x2F, 0x4D,
 			0x17, 0xDE, 0x43, 0xF9, 0xF9, 0xAD, 0xEE, 0x70};
-#if 0
-/* SIGINT handler: set quit to 1 for graceful termination */
-handle_sigint(int signum) {
-  dsrv_stop(dsrv_get_context());
+#endif /* DTLS_ECC */
 #ifdef DTLS_PSK
 /* This function is the "key store" for tinyDTLS. It is called to