src/treesutil.c
/**
 * Change user password
 *
 * input pubkey, salt, nonce, lockedstr in hex format
 * oldpassword, newpassword
 * inputs nul delimited
 * output pubkey, salt, nonce, lockedstr in hex format
 */
Change user password
input pubkey, salt, nonce, lockedstr in hex format
oldpassword, newpassword
inputs nul delimited
output pubkey, salt, nonce, lockedstr in hex format
Change user password input pubkey salt nonce lockedstr in hex format oldpassword newpassword inputs nul delimited output pubkey salt nonce lockedstr in hex format
static void
changepw()
{
    char** inputs;
    user_t user;
    char *oldpass, *newpass;
    getuserstdin(&user);
    inputs = getinputs(2);
    oldpass = inputs[0];
    newpass = inputs[1];
    decryptuserbox(&user, oldpass);
    gensecrets(&user, newpass);
    hexuser(&user);
    printuser(&user);
    exit(EXIT_SUCCESS);
}
static void changepw ( ) { char * * inputs ; user_t user ; char * oldpass , * newpass ; getuserstdin ( & user ) ; inputs = getinputs ( 2 ) ; oldpass = inputs [ 0 ] ; newpass = inputs [ 1 ] ; decryptuserbox ( & user , oldpass ) ; gensecrets ( & user , newpass ) ; hexuser ( & user ) ; printuser ( & user ) ; exit ( EXIT_SUCCESS ) ; }
Change user password
 input pubkey, salt, nonce, lockedstr in hex format
 oldpassword, newpassword
 inputs nul delimited
 output pubkey, salt, nonce, lockedstr in hex format
Change user password input pubkey salt nonce lockedstr in hex format oldpassword newpassword inputs nul delimited output pubkey salt nonce lockedstr in hex format