]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup compile without libsodium.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Mar 2017 15:30:53 +0000 (15:30 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 20 Mar 2017 15:30:53 +0000 (15:30 +0000)
git-svn-id: file:///svn/unbound/trunk@4070 be551aaa-1e26-0410-a405-d3ace91eadb9

dnscrypt/dnscrypt.h

index 59d6c5402d1a2b78515bb6bfc9006a4830f82e39..8b3012dce6864e9f8f091ae870a02d5f7aca3457 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef UNBOUND_DNSCRYPT_H
 #define UNBOUND_DNSCRYPT_H
 
+#include "dnscrypt/dnscrypt_config.h"
+#ifdef USE_DNSCRYPT
+
 #define DNSCRYPT_MAGIC_HEADER_LEN 8U
 #define DNSCRYPT_MAGIC_RESPONSE  "r6fnvWj8"
 
@@ -90,4 +93,5 @@ int dnsc_handle_curved_request(struct dnsc_env* dnscenv,
  */
 
 int dnsc_handle_uncurved_request(struct comm_reply *repinfo);
+#endif /* USE_DNSCRYPT */
 #endif