Skip to content

Commit 668198f

Browse files
namsicjhpark816
authored andcommitted
FIX: Use dummy arcus_sasl_authz() when sasl is disabled
1 parent 6691520 commit 668198f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sasl_defs.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,28 @@
44
// Longest one I could find was ``9798-U-RSA-SHA1-ENC''
55
#define MAX_SASL_MECH_LEN 32
66

7-
uint16_t arcus_sasl_authz(const char *username);
87

98
#if defined(ENABLE_SASL)
109

1110
#include <sasl/sasl.h>
1211
int init_sasl(void);
1312
void shutdown_sasl(void);
13+
uint16_t arcus_sasl_authz(const char *username);
1414

1515
#elif defined(ENABLE_ISASL)
1616

1717
#include "isasl.h"
1818
int init_sasl(void);
1919
void shutdown_sasl(void);
20+
uint16_t arcus_sasl_authz(const char *username);
21+
2022
#else /* End of SASL support */
2123

2224
typedef void* sasl_conn_t;
2325

2426
#define shutdown_sasl()
2527
#define init_sasl() 0
28+
#define arcus_sasl_authz(a) 0
2629
#define sasl_dispose(x) {}
2730
#define sasl_server_new(a, b, c, d, e, f, g, h) 1
2831
#define sasl_listmech(a, b, c, d, e, f, g, h) 1

0 commit comments

Comments
 (0)