]> source.dussan.org Git - tigervnc.git/commitdiff
Merge branch 'master' of https://github.com/prownd/tigervnc
authorPierre Ossman <ossman@cendio.se>
Thu, 15 Aug 2024 12:14:59 +0000 (14:14 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 15 Aug 2024 12:14:59 +0000 (14:14 +0200)
1  2 
BUILDING.txt
CMakeLists.txt
unix/vncpasswd/vncpasswd.cxx

diff --cc BUILDING.txt
Simple merge
diff --cc CMakeLists.txt
Simple merge
index 877ebcbd4c84fef907fe3c9bca7e06d458fd22fa,b067719b6ce28e1ecb126495dabc269bd442e5ca..b17e73ddc69ff1d1ab6c8a3339901f8f4e7c0eaa
@@@ -116,8 -149,22 +149,22 @@@ static std::vector<uint8_t> readpasswor
        continue;
      }
  
+     if (first.size() > 8) {
+       fprintf(stderr,"Password should not be greater than 8 characters\nBecause only 8 valid characters are used - try again\n");
+       continue;
+     }
+ #ifdef HAVE_PWQUALITY
+     //the function return score of password quality
+     int r = check_passwd_pwquality(passwd);
+     if (r < 0){
+       printf("Password quality check failed, please set it correctly.\n");
+       continue;
+     }
+ #endif
      passwd = getpassword("Verify:");
 -    if (passwd == NULL) {
 +    if (passwd == nullptr) {
        perror("getpass error");
        exit(1);
      }