1
/* Copyright (c) 2011-2012 Dovecot authors, see the included COPYING file */
4
#include "iostream-ssl.h"
6
int io_stream_create_ssl(struct ssl_iostream_context *ctx ATTR_UNUSED,
7
const char *source ATTR_UNUSED,
8
const struct ssl_iostream_settings *set ATTR_UNUSED,
9
struct istream **input ATTR_UNUSED,
10
struct ostream **output ATTR_UNUSED,
11
struct ssl_iostream **iostream_r)
17
void ssl_iostream_unref(struct ssl_iostream **ssl_io ATTR_UNUSED)
21
int ssl_iostream_handshake(struct ssl_iostream *ssl_io ATTR_UNUSED)
25
void ssl_iostream_set_handshake_callback(struct ssl_iostream *ssl_io ATTR_UNUSED,
26
int (*callback)(void *context) ATTR_UNUSED,
27
void *context ATTR_UNUSED) {}
29
bool ssl_iostream_is_handshaked(const struct ssl_iostream *ssl_io ATTR_UNUSED) { return FALSE; }
30
bool ssl_iostream_has_valid_client_cert(const struct ssl_iostream *ssl_io ATTR_UNUSED) { return FALSE; }
31
bool ssl_iostream_has_broken_client_cert(struct ssl_iostream *ssl_io ATTR_UNUSED) { return TRUE; }
32
int ssl_iostream_cert_match_name(struct ssl_iostream *ssl_io ATTR_UNUSED, const char *name ATTR_UNUSED) { return -1; }
33
const char *ssl_iostream_get_peer_name(struct ssl_iostream *ssl_io ATTR_UNUSED) { return NULL; }
34
const char *ssl_iostream_get_security_string(struct ssl_iostream *ssl_io ATTR_UNUSED) { return NULL; }
35
const char *ssl_iostream_get_last_error(struct ssl_iostream *ssl_io ATTR_UNUSED) { return NULL; }
37
int ssl_iostream_generate_params(buffer_t *output ATTR_UNUSED)
41
int ssl_iostream_context_import_params(struct ssl_iostream_context *ctx ATTR_UNUSED,
42
const buffer_t *input ATTR_UNUSED)
47
int ssl_iostream_context_init_client(const char *source ATTR_UNUSED,
48
const struct ssl_iostream_settings *set ATTR_UNUSED,
49
struct ssl_iostream_context **ctx_r ATTR_UNUSED)
54
int ssl_iostream_context_init_server(const char *source ATTR_UNUSED,
55
const struct ssl_iostream_settings *set ATTR_UNUSED,
56
struct ssl_iostream_context **ctx_r)
62
void ssl_iostream_context_deinit(struct ssl_iostream_context **ctx ATTR_UNUSED)