Make DTLS_ANTI_REPLAY depends on PROTO_DTLS
diff --git a/include/polarssl/check_config.h b/include/polarssl/check_config.h
index 56d8441..4f65e17 100644
--- a/include/polarssl/check_config.h
+++ b/include/polarssl/check_config.h
@@ -272,6 +272,11 @@
#error "POLARSSL_SSL_DTLS_HELLO_VERIFY defined, but not all prerequisites"
#endif
+#if defined(POLARSSL_SSL_DTLS_ANTI_REPLAY) && \
+ ( !defined(POLARSSL_SSL_TLS_C) || !defined(POLARSSL_SSL_PROTO_DTLS) )
+#error "POLARSSL_SSL_DTLS_ANTI_REPLAY defined, but not all prerequisites"
+#endif
+
#if defined(POLARSSL_SSL_SESSION_TICKETS) && defined(POLARSSL_SSL_TLS_C) && \
( !defined(POLARSSL_AES_C) || !defined(POLARSSL_SHA256_C) || \
!defined(POLARSSL_CIPHER_MODE_CBC) )