GNU SASL authentication support. More...
#include "config.h"#include <gsasl.h>#include <stdbool.h>#include <stddef.h>#include "mutt/lib.h"#include "connaccount.h"#include "connection.h"#include "gsasl2.h"#include "mutt_account.h"
Include dependency graph for gsasl.c:Go to the source code of this file.
Functions | |
| static int | mutt_gsasl_callback (Gsasl *ctx, Gsasl_session *sctx, Gsasl_property prop) |
| Callback to retrieve authname or user from ConnAccount. | |
| static bool | mutt_gsasl_init (void) |
| Initialise GNU SASL library. | |
| void | mutt_gsasl_cleanup (void) |
| Shutdown GNU SASL library. | |
| const char * | mutt_gsasl_get_mech (const char *requested_mech, const char *server_mechlist) |
| Pick a connection mechanism. | |
| int | mutt_gsasl_client_new (struct Connection *conn, const char *mech, Gsasl_session **sctx) |
| Create a new GNU SASL client. | |
| void | mutt_gsasl_client_finish (Gsasl_session **sctx) |
| Free a GNU SASL client. | |
Variables | |
| static Gsasl * | MuttGsaslCtx = NULL |
| Global GNU SASL handle. | |
GNU SASL authentication support.
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 gsasl.c.
|
static |
Callback to retrieve authname or user from ConnAccount.
| ctx | GNU SASL context |
| sctx | GNU SASL session |
| prop | Property to get, e.g. GSASL_PASSWORD |
| num | GNU SASL error code, e.g. GSASL_OK |
Definition at line 49 of file gsasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Initialise GNU SASL library.
| true | Success |
Definition at line 128 of file gsasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_gsasl_cleanup | ( | void | ) |
Shutdown GNU SASL library.
Definition at line 149 of file gsasl.c.
Here is the caller graph for this function:| const char * mutt_gsasl_get_mech | ( | const char * | requested_mech, |
| const char * | server_mechlist ) |
Pick a connection mechanism.
| requested_mech | Requested mechanism |
| server_mechlist | Server's list of mechanisms |
| ptr | Selected mechanism string |
Definition at line 164 of file gsasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_gsasl_client_new | ( | struct Connection * | conn, |
| const char * | mech, | ||
| Gsasl_session ** | sctx ) |
Create a new GNU SASL client.
| conn | Connection to a server |
| mech | Mechanisms to use |
| sctx | GNU SASL Session |
| 0 | Success |
| -1 | Error |
Definition at line 199 of file gsasl.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_gsasl_client_finish | ( | Gsasl_session ** | sctx | ) |