mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
22 lines
555 B
C
22 lines
555 B
C
#ifndef PROXYPROTOCOL_H
|
|
#define PROXYPROTOCOL_H
|
|
|
|
|
|
#if HAVE_PROXYPROTOCOL
|
|
|
|
|
|
int pp_write_header(int pp_version, struct connection* cnx);
|
|
int pp_log_connection(char* buffer, ssize_t buffer_len);
|
|
int pp_header_len(char* buffer, int len);
|
|
|
|
|
|
#else /* HAVE_PROXYPROTOCOL */
|
|
|
|
static inline int pp_write_header(int pp_version, struct connection* cnx) { return 0; }
|
|
static int pp_log_connection(char* buffer, ssize_t buffer_len) { return 0; }
|
|
static inline int pp_header_len(char*, int) { return 0; }
|
|
|
|
#endif /* HAVE_PROXYPROTOCOL */
|
|
|
|
#endif /* PROXYPROTOCOL_H */
|