diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-09-17 18:48:55 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-09-18 21:37:17 +0200 |
commit | e7009fe8f3928db009f5d03ff47bd159599e5440 (patch) | |
tree | ee24085b00f84a9d1310468719d8d5194cfeaf67 /src | |
parent | ffb827b539635236c2c46804a899999949c07187 (diff) | |
download | libssh-e7009fe8f3928db009f5d03ff47bd159599e5440.tar.gz libssh-e7009fe8f3928db009f5d03ff47bd159599e5440.tar.xz libssh-e7009fe8f3928db009f5d03ff47bd159599e5440.zip |
priv: Create crc32.h.
As crc32 is only needed by SSHv1, build it only with SSHv1.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/crc32.c | 3 | ||||
-rw-r--r-- | src/packet1.c | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11e81d6..1504b76 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -82,7 +82,6 @@ set(libssh_SRCS client.c config.c connect.c - crc32.c crypt.c dh.c ecdh.c @@ -144,6 +143,7 @@ if (WITH_SSH1) ${libssh_SRCS} auth1.c channels1.c + crc32.c kex1.c packet1.c ) diff --git a/src/crc32.c b/src/crc32.c index 94d3020..cb4e931 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -21,7 +21,10 @@ * MA 02111-1307, USA. */ +#include "config.h" + #include "libssh/priv.h" +#include "libssh/crc32.h" static uint32_t crc_table[] = { 0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL, diff --git a/src/packet1.c b/src/packet1.c index ddc64a3..03f2745 100644 --- a/src/packet1.c +++ b/src/packet1.c @@ -26,6 +26,7 @@ #include "config.h" #include "libssh/priv.h" #include "libssh/ssh1.h" +#include "libssh/crc32.h" #include "libssh/packet.h" #include "libssh/session.h" #include "libssh/buffer.h" |