Skip to content

Commit

Permalink
check hash functions required for PRFs
Browse files Browse the repository at this point in the history
  • Loading branch information
obgm committed Dec 14, 2011
1 parent ddd940d commit 4cc98a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
#include "numeric.h"
#include "dtls.h"

#if DTLS_VERSION == 0xfeff && (!defined(WITH_MD5) || !defined(WITH_SHA1))
# error DTLS version 1.1 requires WITH_MD5 and WITH_SHA1
#elif DTLS_VERSION == 0xfefd && !defined(WITH_SHA256)
# error DTLS version 1.2 requires WITH_SHA256
#endif

#ifdef WITH_MD5
# include "md5/md5.h"
#endif
Expand Down

0 comments on commit 4cc98a3

Please sign in to comment.