Fixup naming a bit

Originally I was calling thing "password" a lot, but the consistent
naming is "passphrase" and "encrypted account".
This commit is contained in:
Floris Bruynooghe
2022-02-07 20:50:50 +01:00
parent cd6aba1e57
commit 2d14f1e187

View File

@@ -2619,12 +2619,12 @@ void dc_accounts_unref (dc_accounts_t* accounts);
uint32_t dc_accounts_add_account (dc_accounts_t* accounts); uint32_t dc_accounts_add_account (dc_accounts_t* accounts);
/** /**
* Add a new account with a password to the account manager. * Add a new account to the account manager, encrypted with a passphrase.
* *
* The account's database will be encrypted with this password and will need * The account's database will be encrypted with a key derived from the
* to be opened with the password to be usable. * passphrase and will need to be opened with the passphrase to be usable.
* *
* Password-protected accounts are not automatically opened when the account * Encrypted accounts are not automatically opened when the account
* manager is created. They need to be opened using dc_accounts_load_encrypted(), * manager is created. They need to be opened using dc_accounts_load_encrypted(),
* to find unloaded encrypted accounts use dc_accounts_get_encrypted(). * to find unloaded encrypted accounts use dc_accounts_get_encrypted().
* *
@@ -2634,7 +2634,7 @@ uint32_t dc_accounts_add_account (dc_accounts_t* accounts);
* context object. * context object.
* On errors, 0 is returned. * On errors, 0 is returned.
*/ */
uint32_t dc_accounts_add_encrypted_account(dc_accounts_t* accounts, char* password); uint32_t dc_accounts_add_encrypted_account(dc_accounts_t* accounts, char* passphrase);
/** /**
* Migrate independent accounts into accounts managed by the account manager. * Migrate independent accounts into accounts managed by the account manager.