--- libmariadb/plugins/auth/CMakeLists.txt.orig	2019-11-11 05:31:43 UTC
+++ libmariadb/plugins/auth/CMakeLists.txt
@@ -75,6 +75,7 @@ IF(CRYPTO_PLUGIN)
                         ${CRYPT_SOURCE}
                 LIBRARIES ${CRYPT_LIBS})
 
+  IF(NOT WITHOUT_CLIENT)
   IF(WITH_SSL STREQUAL "GNUTLS" AND NOT WIN32)
     MESSAGE1(STATUS "sha256_password not supported by GnuTLS due to missing OAEP padding")
   ELSE()
@@ -85,6 +86,7 @@ IF(CRYPTO_PLUGIN)
                     SOURCES ${AUTH_DIR}/sha256_pw.c
                     LIBRARIES ${CRYPT_LIBS})
   ENDIF()
+  ENDIF()  
 ENDIF()
 
 #GSSAPI client authentication plugin
@@ -119,9 +121,11 @@ REGISTER_PLUGIN(TARGET mysql_old_password
                 DEFAULT STATIC
                 SOURCES ${AUTH_DIR}/old_password.c)
 
+IF(NOT WITHOUT_CLIENT)
 # Cleartext
 REGISTER_PLUGIN(TARGET mysql_clear_password
                 TYPE MARIADB_CLIENT_PLUGIN_AUTH
                 CONFIGURATIONS DYNAMIC STATIC OFF
                 DEFAULT DYNAMIC
                 SOURCES ${AUTH_DIR}/mariadb_cleartext.c)
+ENDIF()
