]> source.dussan.org Git - tigervnc.git/commitdiff
Use new API for getVncAuthPasswd()
authorPierre Ossman <ossman@cendio.se>
Tue, 2 Dec 2014 13:17:06 +0000 (14:17 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 2 Dec 2014 13:17:06 +0000 (14:17 +0100)
win/vncconfig/Authentication.h

index 534646c568d7906c9a884605aece1cfb8a31a54a..c2aba91ef54441cd1f69f4bd7279126ec6684c02 100644 (file)
@@ -92,7 +92,8 @@ namespace rfb {
 
 
       static bool haveVncPassword() {
-        PlainPasswd password(SSecurityVncAuth::vncAuthPasswd.getVncAuthPasswd());
+        PlainPasswd password, passwordReadOnly;
+        SSecurityVncAuth::vncAuthPasswd.getVncAuthPasswd(&password, &passwordReadOnly);
         return password.buf && strlen(password.buf) != 0;
       }