NeoMutt  2022-04-29-323-g5fcc6c
Teaching an old dog new tricks
DOXYGEN
ssl.h
Go to the documentation of this file.
1
23#ifndef MUTT_CONN_SSL_H
24#define MUTT_CONN_SSL_H
25
26#include "config.h"
27#include <stdbool.h>
28#include "mutt/lib.h"
29
30struct Connection;
31
32#ifdef USE_SSL
34ARRAY_HEAD(CertArray, const char *);
35
36void cert_array_clear(struct CertArray *carr);
37
42{
43 struct CertArray *carr;
44 char *prompt;
45 char *keys;
46};
47
48int mutt_ssl_socket_setup(struct Connection *conn);
49int dlg_verify_certificate(const char *title, struct CertArray *carr, bool allow_always, bool allow_skip);
50#else
55static inline int mutt_ssl_socket_setup(struct Connection *conn)
56{
57 return -1;
58}
59#endif
60
61#endif /* MUTT_CONN_SSL_H */
Convenience wrapper for the library headers.
void cert_array_clear(struct CertArray *carr)
Free all memory of a CertArray.
ARRAY_HEAD(CertArray, const char *)
Array of text making up a Certificate.
int mutt_ssl_socket_setup(struct Connection *conn)
Set up SSL socket mulitplexor.
Definition: gnutls.c:1123
int dlg_verify_certificate(const char *title, struct CertArray *carr, bool allow_always, bool allow_skip)
Ask the user to validate the certificate.
Certificate data to use in the Menu.
Definition: ssl.h:42
struct CertArray * carr
Lines of the Certificate.
Definition: ssl.h:43
char * prompt
Prompt for user, similar to mutt_multi_choice.
Definition: ssl.h:44
char * keys
Keys used in the prompt.
Definition: ssl.h:45