Move HAVE_SASL #ifdefs into header file to have less LOC

pull/3/head
Christian Beier 7 years ago
parent 666f37efc0
commit df11e806a3
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -66,10 +66,7 @@
#include <gcrypt.h>
#endif
#ifdef LIBVNCSERVER_HAVE_SASL
#include "rfbsasl.h"
#endif /* LIBVNCSERVER_HAVE_SASL */
#include "minilzo.h"
#include "tls.h"

@ -20,6 +20,8 @@
* USA.
*/
#ifdef LIBVNCSERVER_HAVE_SASL
#include <rfb/rfbclient.h>
/*
@ -32,4 +34,6 @@ rfbBool HandleSASLAuth(rfbClient *client);
*/
int ReadFromSASL(rfbClient* client, char *out, unsigned int n);
#endif /* LIBVNCSERVER_HAVE_SASL */
#endif /* RFBSASL_H */

@ -58,10 +58,7 @@
#include <netdb.h>
#endif
#include "tls.h"
#ifdef LIBVNCSERVER_HAVE_SASL
#include "rfbsasl.h"
#endif /* LIBVNCSERVER_HAVE_SASL */
#ifdef _MSC_VER
# define snprintf _snprintf

@ -286,9 +286,7 @@ typedef char rfbProtocolVersionMsg[13]; /* allow extra byte for null */
#define rfbUltra 17
#define rfbTLS 18
#define rfbVeNCrypt 19
#ifdef LIBVNCSERVER_HAVE_SASL
#define rfbSASL 20
#endif /* LIBVNCSERVER_HAVE_SASL */
#define rfbARD 30
#define rfbMSLogon 0xfffffffa

Loading…
Cancel
Save