From 80326fa1fa7aa5298b1a4e38e2022238793167fd Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 8 Aug 2012 17:21:03 -0700 Subject: [PATCH] pub EmbedGenerateCookie around dtls for now --- src/io.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 */