NeoMutt  2024-04-25-34-g585158
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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_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 */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
int dlg_certificate(const char *title, struct CertArray *carr, bool allow_always, bool allow_skip)
Ask the user to validate the certificate -.
Convenience wrapper for the library headers.
void cert_array_clear(struct CertArray *carr)
Free all memory of a CertArray.
int mutt_ssl_socket_setup(struct Connection *conn)
Set up SSL socket mulitplexor.
Definition: gnutls.c:1129
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 mw_multi_choice.
Definition: ssl.h:44
char * keys
Keys used in the prompt.
Definition: ssl.h:45