This commit is contained in:
Mario Fetka
2026-05-22 15:38:55 +02:00
parent 534f70844a
commit 82202fd6fb

View File

@@ -14,7 +14,7 @@ static int do_change_object_passwd(char *name,
{
uint8 key[8];
if (0 && !ncp_17_17(key)) {
if (!ncp_17_17(key)) {
uint32 objid = ncp_17_35(name, objtyp);
if (objid) {
uint8 buff[128];
@@ -27,13 +27,14 @@ static int do_change_object_passwd(char *name,
nw_encrypt(key, buff, encrypted);
shuffle(tmpid, newpassword, strlen(newpassword), buff);
memcpy(newcryptpasswd, buff, sizeof(newcryptpasswd));
if (!ncp_17_4b(encrypted, name, objtyp, passwdx, newcryptpasswd)) {
;;
return(0);
}
}
} else { /* now we use old unencrypted algorithmus */
} else { /* fallback to old unencrypted algorithmus */
if (!ncp_17_40(name, objtyp, oldpassword, newpassword)) {
;;
return(0);