Handling of SSL encryption. More...
Go to the source code of this file.
Data Structures | |
struct | CertMenuData |
Certificate data to use in the Menu. More... | |
Functions | |
ARRAY_HEAD (CertArray, const char *) | |
Array of text making up a Certificate. More... | |
void | cert_array_clear (struct CertArray *carr) |
Free all memory of a CertArray. More... | |
int | mutt_ssl_socket_setup (struct Connection *conn) |
Set up SSL socket mulitplexor. 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... | |
Handling of SSL encryption.
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 ssl.h.
ARRAY_HEAD | ( | CertArray | , |
const char * | |||
) |
Array of text making up a Certificate.
void cert_array_clear | ( | struct CertArray * | carr | ) |
Free all memory of a CertArray.
carr | Array of text to clear |
Definition at line 158 of file dlg_verifycert.c.
int mutt_ssl_socket_setup | ( | struct Connection * | conn | ) |
Set up SSL socket mulitplexor.
conn | Connection to a server |
0 | Success |
-1 | Error |
Definition at line 1123 of file gnutls.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 182 of file dlg_verifycert.c.