[vlc-commits] [Git][videolan/vlc][master] access: sftp: store creds on successful pubkey auth

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Apr 19 09:27:34 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
4a271ea9 by Tim Schumacher at 2026-04-19T10:31:29+02:00
access: sftp: store creds on successful pubkey auth

- - - - -


1 changed file:

- modules/access/sftp.c


Changes:

=====================================
modules/access/sftp.c
=====================================
@@ -456,7 +456,11 @@ static int Open( vlc_object_t* p_this )
             b_publickey_tried = true;
             if( AuthKeyAgent( p_access, credential.psz_username ) == VLC_SUCCESS
              || AuthPublicKey( p_access, psz_home, credential.psz_username ) == VLC_SUCCESS )
+            {
+                /* Password validity is unknown with the pubkey, but keep the username. */
+                vlc_credential_store( &credential, p_access );
                 break;
+            }
         }
 
         if( strstr( psz_userauthlist, "password" ) != NULL



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4a271ea9fe9819f30d1445bf2aa05871432f4773

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4a271ea9fe9819f30d1445bf2aa05871432f4773
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list