"Fossies" - the Fresh Open Source Software Archive

Member "memcached-1.6.15/sasl_defs.h" (16 Jul 2020, 693 Bytes) of package /linux/www/memcached-1.6.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "sasl_defs.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef SASL_DEFS_H
    2 #define SASL_DEFS_H 1
    3 
    4 // Longest one I could find was ``9798-U-RSA-SHA1-ENC''
    5 #define MAX_SASL_MECH_LEN 32
    6 
    7 #if defined(HAVE_SASL_SASL_H) && defined(ENABLE_SASL)
    8 
    9 #include <sasl/sasl.h>
   10 void init_sasl(void);
   11 
   12 extern char my_sasl_hostname[1025];
   13 
   14 #else /* End of SASL support */
   15 
   16 typedef void* sasl_conn_t;
   17 
   18 #define init_sasl() {}
   19 #define sasl_dispose(x) {}
   20 #define sasl_server_new(a, b, c, d, e, f, g, h) 1
   21 #define sasl_listmech(a, b, c, d, e, f, g, h) 1
   22 #define sasl_server_start(a, b, c, d, e, f) 1
   23 #define sasl_server_step(a, b, c, d, e) 1
   24 #define sasl_getprop(a, b, c) {}
   25 
   26 #define SASL_OK 0
   27 #define SASL_CONTINUE -1
   28 
   29 #endif /* sasl compat */
   30 
   31 #endif /* SASL_DEFS_H */