Disable SCRAM PLUS variants when using schannel.

This fixes #270

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2026-07-29 09:03:09 +02:00
parent 6e219ef46c
commit 419b616b87
2 changed files with 5 additions and 1 deletions

View File

@@ -17,7 +17,9 @@ if TLS_WITH_GNUTLS
SSL_CFLAGS = @gnutls_CFLAGS@
SSL_LIBS = @gnutls_LIBS@
else
if !TLS_WITH_SCHANNEL
if TLS_WITH_SCHANNEL
SSL_CFLAGS = -DSTROPHE_TLS_SCHANNEL
else
SSL_CFLAGS = @openssl_CFLAGS@
SSL_LIBS = @openssl_LIBS@
endif

View File

@@ -93,12 +93,14 @@ const struct hash_alg scram_sha512_plus = {
* https://datatracker.ietf.org/doc/html/draft-ietf-kitten-password-storage
*/
const struct hash_alg *scram_algs[] = {
#if !defined(STROPHE_TLS_SCHANNEL)
/* *1 */
&scram_sha512_plus,
/* *1 */
&scram_sha256_plus,
/* *1 */
&scram_sha1_plus,
#endif
/* *1 */
&scram_sha512,
/* *1 */