mirror of
https://github.com/strophe/libstrophe.git
synced 2026-08-04 19:06:22 +00:00
Disable SCRAM PLUS variants when using schannel.
This fixes #270 Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user