#endif
+#if GSASL_VERSION_MINOR >= 9
+# define EXIM_GSASL_HAVE_SCRAM_SHA_256
+#endif
+
+
/* Authenticator-specific options. */
/* I did have server_*_condition options for various mechanisms, but since
we only ever handle one mechanism at a time, I didn't see the point in keeping
int timeout, uschar *buffer, int buffsize) {return 0;}
void auth_gsasl_version_report(FILE *f) {}
+void
+auth_gsasl_macros(void)
+{
+# ifdef EXIM_GSASL_HAVE_SCRAM_SHA_256
+ builtin_macro_create(US"_HAVE_AUTH_GSASL_SCRAM_SHA_256");
+# endif
+}
+
#else /*!MACRO_PREDEF*/
GSASL_VERSION, runtime);
}
+
+
+/* Dummy */
+void auth_gsasl_macros(void) {}
+
#endif /*!MACRO_PREDEF*/
#endif /* AUTH_GSASL */
.init = auth_cram_md5_init,
.servercode = auth_cram_md5_server,
.clientcode = auth_cram_md5_client,
- .version_report = NULL
+ .version_report = NULL,
+ .macros_create = NULL,
},
#endif
.init = auth_cyrus_sasl_init,
.servercode = auth_cyrus_sasl_server,
.clientcode = NULL,
- .version_report = auth_cyrus_sasl_version_report
+ .version_report = auth_cyrus_sasl_version_report,
+ .macros_create = NULL,
},
#endif
.init = auth_dovecot_init,
.servercode = auth_dovecot_server,
.clientcode = NULL,
- .version_report = NULL
+ .version_report = NULL,
+ .macros_create = NULL,
},
#endif
.init = auth_external_init,
.servercode = auth_external_server,
.clientcode = auth_external_client,
- .version_report = NULL
+ .version_report = NULL,
+ .macros_create = NULL,
},
#endif
.init = auth_gsasl_init,
.servercode = auth_gsasl_server,
.clientcode = auth_gsasl_client,
- .version_report = auth_gsasl_version_report
+ .version_report = auth_gsasl_version_report,
+ .macros_create = auth_gsasl_macros,
},
#endif
.init = auth_heimdal_gssapi_init,
.servercode = auth_heimdal_gssapi_server,
.clientcode = NULL,
- .version_report = auth_heimdal_gssapi_version_report
+ .version_report = auth_heimdal_gssapi_version_report,
+ .macros_create = NULL,
},
#endif
.init = auth_plaintext_init,
.servercode = auth_plaintext_server,
.clientcode = auth_plaintext_client,
- .version_report = NULL
+ .version_report = NULL,
+ .macros_create = NULL,
},
#endif
.init = auth_spa_init,
.servercode = auth_spa_server,
.clientcode = auth_spa_client,
- .version_report = NULL
+ .version_report = NULL,
+ .macros_create = NULL,
},
#endif
.init = auth_tls_init,
.servercode = auth_tls_server,
.clientcode = NULL,
- .version_report = NULL
+ .version_report = NULL,
+ .macros_create = NULL,
},
#endif