diff --git a/src/io.c b/src/io.c index cf38c8a66..9316defb5 100644 --- a/src/io.c +++ b/src/io.c @@ -29,7 +29,6 @@ #endif #include -#include /* if user writes own I/O callbacks they can define CYASSL_USER_IO to remove automatic setting of default I/O functions EmbedSend() and EmbedReceive() @@ -201,6 +200,10 @@ int EmbedSend(char *buf, int sz, void *ctx) } +#ifdef CYASSL_DTLS + +#include + /* The DTLS Generate Cookie callback * return : number of bytes copied into buf, or error */ @@ -240,6 +243,8 @@ int EmbedGenerateCookie(byte *buf, int sz, void *ctx) return SHA_DIGEST_SIZE; } +#endif /* CYASSL_DTLS */ + #endif /* CYASSL_USER_IO */