diff options
| author | gregory guy <gregory-tde@laposte.net> | 2020-10-20 14:40:51 +0200 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2021-01-15 15:15:39 +0100 |
| commit | 7fefe15989a08e255ade5e577c781701b157d430 (patch) | |
| tree | 094796ae879ca732f013f7ff6baf059da9d3b862 /src/crypto.cpp | |
| parent | ade9896cdea394b76db639c1f22a43821a9d1ecd (diff) | |
| download | tork-7fefe15989a08e255ade5e577c781701b157d430.tar.gz tork-7fefe15989a08e255ade5e577c781701b157d430.zip | |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 81b64bcfc0a32fdeb0e4f367adbf273d924e55f4)
Diffstat (limited to 'src/crypto.cpp')
| -rw-r--r-- | src/crypto.cpp | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/src/crypto.cpp b/src/crypto.cpp index 3fb4696..0e6836f 100644 --- a/src/crypto.cpp +++ b/src/crypto.cpp @@ -37,10 +37,25 @@ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. */ /* See Tor LICENSE for licensing information */ /* $Id: crypto.cpp,v 1.11 2008/07/31 19:56:26 hoganrobert Exp $ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <kdebug.h> + #include <string.h> -#include <kdebug.h> -#include "crypto.h" -#include "../config.h" +#include <stdlib.h> +#include <assert.h> +#include <stdio.h> +#include <limits.h> +#include <ctype.h> +#include <unistd.h> +#include <fcntl.h> +#include <sys/fcntl.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <stdint.h> #ifndef USE_OPENSSL #include <gnutls/gnutls.h> @@ -59,18 +74,8 @@ #include <openssl/conf.h> #endif -#include <stdlib.h> -#include <assert.h> -#include <stdio.h> -#include <limits.h> +#include "crypto.h" -#include <ctype.h> -#include <unistd.h> -#include <fcntl.h> -#include <sys/fcntl.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <stdint.h> /* random numbers */ |
