diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-29 03:45:34 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-29 03:45:34 +0100 |
commit | bb324029ad442a1f6dd7049a6e6fc1cbe4a05799 (patch) | |
tree | e3f3e7c33a8077ba5bc721009dd71ea8644f1c1d /fastd_config.h.in | |
parent | fc8c8d82f05911836208cc9169e103d5578ffd70 (diff) | |
download | fastd-bb324029ad442a1f6dd7049a6e6fc1cbe4a05799.tar fastd-bb324029ad442a1f6dd7049a6e6fc1cbe4a05799.zip |
Allow using libsodium instead of NaCl
As libsodium has some strange include files (like a version.h), we try to use
absolute include paths whenever possible in fastd now and rename our generated
headers.
Diffstat (limited to 'fastd_config.h.in')
-rw-r--r-- | fastd_config.h.in | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/fastd_config.h.in b/fastd_config.h.in new file mode 100644 index 0000000..4868985 --- /dev/null +++ b/fastd_config.h.in @@ -0,0 +1,63 @@ +/* + Copyright (c) 2012-2013, Matthias Schiffer <mschiffer@universe-factory.net> + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +#ifndef _FASTD_CONFIG_H_ +#define _FASTD_CONFIG_H_ + +#cmakedefine HAVE_AI_ADDRCONFIG +#cmakedefine HAVE_ETHHDR +#cmakedefine HAVE_GET_CURRENT_DIR_NAME + + +#cmakedefine USE_BINDTODEVICE +#cmakedefine USE_PMTU +#cmakedefine USE_PKTINFO +#cmakedefine USE_MULTIAF_BIND + + +#cmakedefine WITH_CAPABILITIES +#cmakedefine WITH_CMDLINE_USER +#cmakedefine WITH_CMDLINE_LOGGING +#cmakedefine WITH_CMDLINE_OPERATION +#cmakedefine WITH_CMDLINE_COMMANDS + + +#cmakedefine USE_LIBSODIUM + +#cmakedefine USE_CRYPTO_AES128CTR +#cmakedefine USE_CRYPTO_GHASH + +#cmakedefine WITH_CRYPTO_AES128CTR_NACL +#cmakedefine WITH_CRYPTO_AES128CTR_LINUX +#cmakedefine WITH_CRYPTO_GHASH_BUILTIN +#cmakedefine WITH_CRYPTO_GHASH_LINUX + +#cmakedefine WITH_METHOD_XSALSA20_POLY1305 +#cmakedefine WITH_METHOD_AES128_GCM + +#define MAX_CONFIG_DEPTH @MAX_CONFIG_DEPTH_NUM@ + +#endif /* _FASTD_CONFIG_H_ */ |