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

« back to all changes in this revision

Viewing changes to src/auth/auth-request-handler.h

  • 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:
12
12
};
13
13
 
14
14
typedef void
15
 
auth_request_callback_t(struct auth_stream_reply *reply, void *context);
 
15
auth_request_callback_t(const char *reply, void *context);
16
16
 
17
17
struct auth_request_handler *
18
 
auth_request_handler_create(auth_request_callback_t *callback, void *context,
19
 
                            auth_request_callback_t *master_callback);
20
 
#ifdef CONTEXT_TYPE_SAFETY
21
 
#  define auth_request_handler_create(callback, context, master_callback)\
22
 
        ({(void)(1 ? 0 : callback((struct auth_stream_reply *)NULL, context)); \
23
 
          auth_request_handler_create( \
24
 
                (auth_request_callback_t *)callback, context, \
25
 
                master_callback); })
26
 
#else
27
 
#  define auth_request_handler_create(callback, context, master_callback)\
28
 
          auth_request_handler_create( \
29
 
                (auth_request_callback_t *)callback, context, \
 
18
auth_request_handler_create(bool token_auth, auth_request_callback_t *callback,
 
19
                            void *context, auth_request_callback_t *master_callback);
 
20
#define auth_request_handler_create(token_auth, callback, context, master_callback)\
 
21
          auth_request_handler_create(token_auth, \
 
22
                (auth_request_callback_t *)callback, \
 
23
                (void *)((char*)context + \
 
24
                        CALLBACK_TYPECHECK(callback, void (*)( \
 
25
                                const char *, typeof(context)))), \
30
26
                master_callback)
31
 
#endif
 
27
 
32
28
void auth_request_handler_destroy(struct auth_request_handler **handler);
33
29
void auth_request_handler_unref(struct auth_request_handler **handler);
34
30
void auth_request_handler_abort_requests(struct auth_request_handler *handler);
50
46
auth_request_handler_get_request_count(struct auth_request_handler *handler);
51
47
bool auth_request_handler_master_request(struct auth_request_handler *handler,
52
48
                                         struct auth_master_connection *master,
53
 
                                         unsigned int id,
54
 
                                         unsigned int client_id);
 
49
                                         unsigned int id, unsigned int client_id,
 
50
                                         const char *const *params);
55
51
void auth_request_handler_cancel_request(struct auth_request_handler *handler,
56
52
                                         unsigned int client_id);
57
53