增加SM3注释 #15

Open
GuanZH wants to merge 2 commits from GuanZH/openGauss-server:master into master
1 changed files with 1 additions and 0 deletions
Showing only changes of commit f66ee0254c - Show all commits

1
src/gausskernel/optimizer/commands/user.cpp Executable file → Normal file
View File

@ -6068,6 +6068,7 @@ Datum calculate_encrypted_password(bool is_encrypted, const char* password, cons
* if Password_encryption_type is 0, the encrypted password is md5.
* if Password_encryption_type is 1, the encrypted password is sha256 + md5.
* if Password_encryption_type is 2, the encrypted password is sha256.
* if Password_encryption_type is 3, the encrypted password is SM3.
*/
if (u_sess->attr.attr_security.Password_encryption_type == 0) {
if (!pg_md5_encrypt(password, rolname, strlen(rolname), encrypted_md5_password)) {