Certificate Verification Dialog. More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "mutt/lib.h"
#include "gui/lib.h"
#include "color/lib.h"
#include "menu/lib.h"
#include "globals.h"
#include "keymap.h"
#include "opcodes.h"
#include "ssl.h"
Go to the source code of this file.
Functions | |
static int | menu_dialog_dokey (struct Menu *menu, int *id) |
Check if there are any menu key events to process. More... | |
static int | menu_dialog_translate_op (int op) |
Convert menubar movement to scrolling. More... | |
static void | cert_make_entry (struct Menu *menu, char *buf, size_t buflen, int line) |
Create a string to display in a Menu - Implements Menu::make_entry() -. More... | |
void | cert_array_clear (struct CertArray *carr) |
Free all memory of a CertArray. More... | |
int | dlg_verify_certificate (const char *title, struct CertArray *carr, bool allow_always, bool allow_skip) |
Ask the user to validate the certificate. More... | |
Variables | |
static const struct Mapping | VerifyHelp [] |
Help Bar for the Certificate Verification dialog. More... | |
Certificate Verification Dialog.
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 dlg_verifycert.c.
|
static |
Check if there are any menu key events to process.
0 | An event occurred for the menu, or a timeout |
-1 | There was an event, but not for menu |
Definition at line 82 of file dlg_verifycert.c.
|
static |
Convert menubar movement to scrolling.
op | Action requested, e.g. OP_NEXT_ENTRY |
num | Action to perform, e.g. OP_NEXT_LINE |
Definition at line 112 of file dlg_verifycert.c.
void cert_array_clear | ( | struct CertArray * | carr | ) |
Free all memory of a CertArray.
carr | Array of text to clear |
Definition at line 156 of file dlg_verifycert.c.
int dlg_verify_certificate | ( | const char * | title, |
struct CertArray * | carr, | ||
bool | allow_always, | ||
bool | allow_skip | ||
) |
Ask the user to validate the certificate.
title | Menu title |
carr | Certificate text to display |
allow_always | If true, allow the user to always accept the certificate |
allow_skip | If true, allow the user to skip the verification |
1 | Reject certificate (or menu aborted) |
2 | Accept certificate once |
3 | Accept certificate always/skip (see notes) |
4 | Accept certificate skip |
The possible retvals will depend on the parameters. The options are given in the order: Reject, Once, Always, Skip. The retval represents the chosen option.
Definition at line 180 of file dlg_verifycert.c.
|
static |
Help Bar for the Certificate Verification dialog.
Definition at line 67 of file dlg_verifycert.c.