Mercurial > dovecot > core-2.2
view src/lib-ssl-iostream/iostream-ssl-private.h @ 19604:c996bc091c6b
master: Do not close stdout if going foreground
This lets one to use /dev/stdout for logging. Mainly
useful for testing purposes where we can generate
log output to stdout and use tee to write it to a
file for later examination.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 18 Jan 2016 15:50:23 +0200 |
parents | f7ebc677fdb9 |
children | cdc4eabdb514 |
line wrap: on
line source
#ifndef IOSTREAM_SSL_PRIVATE_H #define IOSTREAM_SSL_PRIVATE_H #include "iostream-ssl.h" struct iostream_ssl_vfuncs { void (*global_deinit)(void); int (*context_init_client)(const struct ssl_iostream_settings *set, struct ssl_iostream_context **ctx_r, const char **error_r); int (*context_init_server)(const struct ssl_iostream_settings *set, struct ssl_iostream_context **ctx_r, const char **error_r); void (*context_deinit)(struct ssl_iostream_context *ctx); int (*generate_params)(buffer_t *output, unsigned int dh_length, const char **error_r); int (*context_import_params)(struct ssl_iostream_context *ctx, const buffer_t *input); int (*create)(struct ssl_iostream_context *ctx, const char *host, const struct ssl_iostream_settings *set, struct istream **input, struct ostream **output, struct ssl_iostream **iostream_r, const char **error_r); void (*unref)(struct ssl_iostream *ssl_io); void (*destroy)(struct ssl_iostream *ssl_io); int (*handshake)(struct ssl_iostream *ssl_io); void (*set_handshake_callback)(struct ssl_iostream *ssl_io, ssl_iostream_handshake_callback_t *callback, void *context); void (*set_log_prefix)(struct ssl_iostream *ssl_io, const char *prefix); bool (*is_handshaked)(const struct ssl_iostream *ssl_io); bool (*has_handshake_failed)(const struct ssl_iostream *ssl_io); bool (*has_valid_client_cert)(const struct ssl_iostream *ssl_io); bool (*has_broken_client_cert)(struct ssl_iostream *ssl_io); int (*cert_match_name)(struct ssl_iostream *ssl_io, const char *name); const char *(*get_peer_name)(struct ssl_iostream *ssl_io); const char *(*get_server_name)(struct ssl_iostream *ssl_io); const char *(*get_security_string)(struct ssl_iostream *ssl_io); const char *(*get_last_error)(struct ssl_iostream *ssl_io); }; #endif