/usr/include/tcpcrypt/tcpcrypt.h is in libtcpcrypt-dev 0.3~rc1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #ifndef __TCPCRYPT_TCPCRYPT_H__
#define __TCPCRYPT_TCPCRYPT_H__
#ifdef __cplusplus
extern "C" {
#pragma GCC visibility push(default)
#endif
#ifndef __WIN32__
#include <sys/socket.h>
#include <stdint.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h> /* TODO: needed? */
#endif
#define TCPCRYPT_SID_MAXLEN 32
/* tcpcrypt get/setsockopt optnames */
enum {
TCP_CRYPT_ENABLE = 0,
TCP_CRYPT_CMODE,
TCP_CRYPT_SESSID,
TCP_CRYPT_RSA_KEY = 3,
TCP_CRYPT_APP_SUPPORT = 15,
/* non standard options */
TCP_CRYPT_RESET = 100,
TCP_CRYPT_NOCACHE,
TCP_CRYPT_NETSTAT,
};
enum {
TCPCRYPT_PARAM_CTLPATH = 0,
};
extern void tcpcrypt_setparam(int param, void *val);
extern int tcpcrypt_getsockopt(int s, int level, int optname, void *optval,
socklen_t *optlen);
extern int tcpcrypt_setsockopt(int s, int level, int optname,
const void *optval, socklen_t optlen);
extern char *tcpcrypt_getsessid(char *remote_ip, uint16_t remote_port,
char *local_ip, uint16_t local_port);
#ifdef __cplusplus
}
#pragma GCC visibility pop
#endif
#endif // __TCPCRYPT_TCPCRYPT_H__
|