From 3c0a2290060a79eda3a0cdca5e170b391c227187 Mon Sep 17 00:00:00 2001 From: Eao3piq4e Date: Fri, 12 Aug 2022 11:56:28 +0800 Subject: [PATCH] Update libcomm_client_ssl.cpp --- .../communication/libcomm_utils/libcomm_client_ssl.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gausskernel/cbb/communication/libcomm_utils/libcomm_client_ssl.cpp b/src/gausskernel/cbb/communication/libcomm_utils/libcomm_client_ssl.cpp index 085f3ef12..5f30e9333 100644 --- a/src/gausskernel/cbb/communication/libcomm_utils/libcomm_client_ssl.cpp +++ b/src/gausskernel/cbb/communication/libcomm_utils/libcomm_client_ssl.cpp @@ -236,8 +236,6 @@ char* LibCommErrMessage(void) { return errBuf; } - - int LibCommClientSSLPasswd(SSL* pstContext, const char * path, const char * userName, LibCommConn * conn) { char* CertFilesDir = NULL; char CertFilesPath[MAXPATH] = {0}; @@ -259,10 +257,10 @@ int LibCommClientSSLPasswd(SSL* pstContext, const char * path, const char * user CertFilesDir = CertFilesPath; get_parent_directory(CertFilesDir); - /*check whether the cipher and rand files begins with userName exist. + /*check whether the cipher and rand files beginning with userName exist. if exist, decrypt it. - if not,decrypt the default cipher and rand files begins with client%. - Because,for every client user mayown certification and private key*/ + if not,decrypt the default cipher and rand files begins with client. + Because,for every client user may own certification and private key*/ if (NULL == userName) { retval = LibCommClientCheckPermissionCipherFile(CertFilesDir, conn, NULL); if (retval != 1)