Skip to content
Permalink
Browse files

Fix static build

  • Loading branch information...
michaelortmann authored and vanosg committed Aug 20, 2019
1 parent db9ddcc commit cbb5dad2566a2b57d6cb8574724433b80827441d
Showing with 10 additions and 7 deletions.
  1. +7 −0 src/mod/server.mod/server.c
  2. +3 −7 src/mod/server.mod/server.h
@@ -141,6 +141,13 @@ static int burst;
#include "cmdsserv.c"
#include "tclserv.c"

/* Available sasl mechanisms. */
char const *SASL_MECHANISMS[SASL_MECHANISM_NUM] = {
[SASL_MECHANISM_PLAIN] = "PLAIN",
[SASL_MECHANISM_ECDSA_NIST256P_CHALLENGE] = "ECDSA-NIST256P-CHALLENGE",
[SASL_MECHANISM_EXTERNAL] = "EXTERNAL"
};


static void write_to_server(char *s, unsigned int len) {
char *s2 = nmalloc(len + 2);
@@ -20,11 +20,11 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#define CAPMAX 499 /* (512 - "CAP REQ :XXX\r\n") */

#ifndef _EGG_MOD_SERVER_SERVER_H
#define _EGG_MOD_SERVER_SERVER_H

#define CAPMAX 499 /* (512 - "CAP REQ :XXX\r\n") */

#define check_tcl_ctcp(a,b,c,d,e,f) check_tcl_ctcpr(a,b,c,d,e,f,H_ctcp)
#define check_tcl_ctcr(a,b,c,d,e,f) check_tcl_ctcpr(a,b,c,d,e,f,H_ctcr)

@@ -127,10 +127,6 @@ enum {
SASL_MECHANISM_NUM
};

char const *const SASL_MECHANISMS[SASL_MECHANISM_NUM] = {
[SASL_MECHANISM_PLAIN] = "PLAIN",
[SASL_MECHANISM_ECDSA_NIST256P_CHALLENGE] = "ECDSA-NIST256P-CHALLENGE",
[SASL_MECHANISM_EXTERNAL] = "EXTERNAL"
};
extern char const *SASL_MECHANISMS[];

#endif /* _EGG_MOD_SERVER_SERVER_H */

0 comments on commit cbb5dad

Please sign in to comment.
You can’t perform that action at this time.