~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-ssl-iostream/iostream-ssl-none.c

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2011-2012 Dovecot authors, see the included COPYING file */
2
 
 
3
 
#include "lib.h"
4
 
#include "iostream-ssl.h"
5
 
 
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)
12
 
{
13
 
        *iostream_r = NULL;
14
 
        return -1;
15
 
}
16
 
 
17
 
void ssl_iostream_unref(struct ssl_iostream **ssl_io ATTR_UNUSED)
18
 
{
19
 
}
20
 
 
21
 
int ssl_iostream_handshake(struct ssl_iostream *ssl_io ATTR_UNUSED)
22
 
{
23
 
        return -1;
24
 
}
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) {}
28
 
 
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; }
36
 
 
37
 
int ssl_iostream_generate_params(buffer_t *output ATTR_UNUSED)
38
 
{
39
 
        return -1;
40
 
}
41
 
int ssl_iostream_context_import_params(struct ssl_iostream_context *ctx ATTR_UNUSED,
42
 
                                       const buffer_t *input ATTR_UNUSED)
43
 
{
44
 
        return -1;
45
 
}
46
 
 
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)
50
 
{
51
 
        return -1;
52
 
}
53
 
 
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)
57
 
{
58
 
        *ctx_r = NULL;
59
 
        return -1;
60
 
}
61
 
 
62
 
void ssl_iostream_context_deinit(struct ssl_iostream_context **ctx ATTR_UNUSED)
63
 
{
64
 
}