Connection Credentials. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include <string.h>#include <sys/types.h>#include "mutt/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "mutt.h"#include "connaccount.h"#include "editor/lib.h"#include "history/lib.h"#include "accountcmd.h"#include "globals.h"
Include dependency graph for connaccount.c:Go to the source code of this file.
Functions | |
| int | mutt_account_getuser (struct ConnAccount *cac) |
| Retrieve username into ConnAccount, if necessary. | |
| int | mutt_account_getlogin (struct ConnAccount *cac) |
| Retrieve login info into ConnAccount, if necessary. | |
| int | mutt_account_getpass (struct ConnAccount *cac) |
| Fetch password into ConnAccount, if necessary. | |
| void | mutt_account_unsetpass (struct ConnAccount *cac) |
| Unset ConnAccount's password. | |
| char * | mutt_account_getoauthbearer (struct ConnAccount *cac, bool xoauth2) |
| Get an OAUTHBEARER/XOAUTH2 token. | |
Connection Credentials.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file connaccount.c.
| int mutt_account_getuser | ( | struct ConnAccount * | cac | ) |
Retrieve username into ConnAccount, if necessary.
| cac | ConnAccount to fill |
| 0 | Success |
| -1 | Failure |
Definition at line 52 of file connaccount.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_account_getlogin | ( | struct ConnAccount * | cac | ) |
Retrieve login info into ConnAccount, if necessary.
| cac | ConnAccount to fill |
| 0 | Success |
| -1 | Failure |
Definition at line 101 of file connaccount.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_account_getpass | ( | struct ConnAccount * | cac | ) |
Fetch password into ConnAccount, if necessary.
| cac | ConnAccount to fill |
| 0 | Success |
| -1 | Failure |
Definition at line 131 of file connaccount.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_account_unsetpass | ( | struct ConnAccount * | cac | ) |
Unset ConnAccount's password.
| cac | ConnAccount to modify |
Definition at line 178 of file connaccount.c.
Here is the caller graph for this function:| char * mutt_account_getoauthbearer | ( | struct ConnAccount * | cac, |
| bool | xoauth2 ) |
Get an OAUTHBEARER/XOAUTH2 token.
| cac | Account to use |
| xoauth2 | Generate a deprecated XOAUTH2 token |
| ptr | OAuth token |
| NULL | Error |
Run an external command to generate the oauth refresh token for an account, then create and encode the OAUTHBEARER token based on RFC7628.
Definition at line 196 of file connaccount.c.
Here is the call graph for this function:
Here is the caller graph for this function: