iostream-ssl.h revision 38f1423a23f6c9a37c01152595ce3ca8a0a65121
#ifndef IOSTREAM_SSL_H
#define IOSTREAM_SSL_H
struct ssl_iostream;
struct ssl_iostream_context;
struct ssl_iostream_settings {
const char *cipher_list;
const char *cert;
const char *key;
const char *key_password;
const char *cert_username_field;
const char *crypto_device;
bool verbose, verbose_invalid_cert;
bool verify_remote_cert;
bool require_valid_cert;
};
const struct ssl_iostream_settings *set,
struct ssl_iostream **iostream_r);
/* returned input and output streams must also be unreferenced */
/* shutdown SSL connection and unreference ssl iostream */
void *context);
int ssl_iostream_context_init_client(const char *source,
const struct ssl_iostream_settings *set,
struct ssl_iostream_context **ctx_r);
int ssl_iostream_context_init_server(const char *source,
const struct ssl_iostream_settings *set,
struct ssl_iostream_context **ctx_r);
#endif