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 "connaccount.h"#include "editor/lib.h"#include "history/lib.h"#include "accountcmd.h"#include "globals.h"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 51 of file connaccount.c.
| 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 100 of file connaccount.c.
| int mutt_account_getpass | ( | struct ConnAccount * | cac | ) |
Fetch password into ConnAccount, if necessary.
| cac | ConnAccount to fill |
| 0 | Success |
| -1 | Failure |
Definition at line 130 of file connaccount.c.
| void mutt_account_unsetpass | ( | struct ConnAccount * | cac | ) |
Unset ConnAccount's password.
| cac | ConnAccount to modify |
Definition at line 177 of file connaccount.c.
| 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 195 of file connaccount.c.