Skip to content

Commit

Permalink
Make check for SHA1 in OpenSSL more consistent
Browse files Browse the repository at this point in the history
Change-Id: Id8b6d75fdb9655777d410a2e99635911eaf56016
Reviewed-on: http://review.couchbase.org/c/libcouchbase/+/140800
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  • Loading branch information
avsej committed Nov 23, 2020
1 parent 652103d commit c0224bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcserver/negotiate.cc
Expand Up @@ -300,7 +300,7 @@ SessionRequestImpl::MechStatus SessionRequestImpl::set_chosen_mech(std::string &
/* do not allow to downgrade SASL mechanism to PLAIN on non-TLS connections,
* unless user explicitly asks for it */
if (!tls && !user_specified && strncmp(chosenmech, MECH_PLAIN, sizeof(MECH_PLAIN)) == 0) {
#ifdef LCB_NO_SSL
#if defined(LCB_NO_SSL) || !defined(HAVE_PKCS5_PBKDF2_HMAC)
lcb_log(LOGARGS(this, ERROR),
LOGFMT
"SASL PLAIN authentication is not allowed on non-TLS connections. But this libcouchbase "
Expand Down

0 comments on commit c0224bc

Please sign in to comment.