diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-05-17 12:29:57 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-05-21 09:18:16 +0800 |
commit | 593b92e5be8805e32ef43d9208ed0e7a4acf83df (patch) | |
tree | 75260bb96524f6f1d3df9d83cc373df9b853e843 /src/protocol/internal/crc32.h | |
parent | 535fc2e838277de6132ea1b3f5a3726c315e6d5e (diff) | |
download | fqterm-593b92e5be8805e32ef43d9208ed0e7a4acf83df.tar.xz |
move packet making code to C code
Diffstat (limited to 'src/protocol/internal/crc32.h')
-rw-r--r-- | src/protocol/internal/crc32.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/protocol/internal/crc32.h b/src/protocol/internal/crc32.h index ca95b89..56e3b7b 100644 --- a/src/protocol/internal/crc32.h +++ b/src/protocol/internal/crc32.h @@ -26,12 +26,17 @@ #ifndef SSH_CRC32_H #define SSH_CRC32_H -#include "fqterm_ssh_types.h" -namespace FQTerm { +#include <stdint.h> -u_int32_t ssh_crc32(const u_char *, u_int32_t); +#ifdef __cplusplus +extern "C" { +#endif + +uint32_t ssh_crc32(const uint8_t *, uint32_t); -} // namespace FQTerm +#ifdef __cplusplus +} +#endif #endif |