~ubuntu-branches/ubuntu/trusty/dovecot/trusty-updates

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-08 09:35:49 UTC
  • mfrom: (1.15.3) (96.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140108093549-814nkqdcxfbvgktg
Tags: 1:2.2.9-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + Use the autotools-dev dh addon to update config.guess/config.sub for
    arm64.
* Dropped changes, included in Debian:
  - Update Dovecot name to reflect distribution in login greeting.
  - Update Drac plugin for >= 2.0.0 support.
* d/control: Drop dovecot-postfix package as its no longer required.

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
 
}