~ubuntu-branches/ubuntu/precise/dovecot/precise-security

« back to all changes in this revision

Viewing changes to pigeonhole/src/lib-sieve/sieve-generator.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-04-04 14:56:38 UTC
  • mfrom: (1.15.1) (4.1.26 sid)
  • Revision ID: package-import@ubuntu.com-20120404145638-qmvdul6vwpcqparv
Tags: 1:2.0.19-0ubuntu1
* New upstream release (LP: #970782).
* Merge from Debian testing, 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/{control,rules}: enable PIE hardening.
  + 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.
  + d/patches/fix-racey-restart.patch: Backported patch from current
    development release which ensures all child processes terminate prior
    to the main dovecot process.
  + debian/patches/CVE-2011-4318.patch: Dropped - applied upstream
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
* d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2002-2011 Pigeonhole authors, see the included COPYING file
 
1
/* Copyright (c) 2002-2012 Pigeonhole authors, see the included COPYING file
2
2
 */
3
3
 
4
4
#ifndef __SIEVE_GENERATOR_H
27
27
        (struct sieve_ast *ast, struct sieve_error_handler *ehandler);
28
28
void sieve_generator_free(struct sieve_generator **generator);
29
29
 
30
 
/*
31
 
 * Accessors
 
30
/* 
 
31
 * Accessors 
32
32
 */
33
33
 
34
34
struct sieve_error_handler *sieve_generator_error_handler
41
41
struct sieve_binary_block *sieve_generator_get_block
42
42
        (struct sieve_generator *gentr);
43
43
 
44
 
/*
45
 
 * Error handling
 
44
/* 
 
45
 * Error handling 
46
46
 */
47
47
 
48
48
void sieve_generator_warning
49
 
(struct sieve_generator *gentr, unsigned int source_line,
 
49
(struct sieve_generator *gentr, unsigned int source_line, 
50
50
        const char *fmt, ...) ATTR_FORMAT(3, 4);
51
51
void sieve_generator_error
52
 
(struct sieve_generator *gentr, unsigned int source_line,
 
52
(struct sieve_generator *gentr, unsigned int source_line, 
53
53
        const char *fmt, ...) ATTR_FORMAT(3, 4);
54
54
void sieve_generator_critical
55
 
(struct sieve_generator *gentr, unsigned int source_line,
56
 
        const char *fmt, ...) ATTR_FORMAT(3, 4);
 
55
(struct sieve_generator *gentr, unsigned int source_line, 
 
56
        const char *fmt, ...) ATTR_FORMAT(3, 4); 
57
57
 
58
 
/*
59
 
 * Extension support
 
58
/* 
 
59
 * Extension support 
60
60
 */
61
61
 
62
62
void sieve_generator_extension_set_context
63
 
        (struct sieve_generator *gentr, const struct sieve_extension *ext,
 
63
        (struct sieve_generator *gentr, const struct sieve_extension *ext, 
64
64
                void *context);
65
65
const void *sieve_generator_extension_get_context
66
66
        (struct sieve_generator *gentr, const struct sieve_extension *ext);
67
 
 
68
 
/*
69
 
 * Jump list
 
67
                
 
68
/* 
 
69
 * Jump list 
70
70
 */
71
71
 
72
72
struct sieve_jumplist {
85
85
        (struct sieve_jumplist *jlist, sieve_size_t jump);
86
86
void sieve_jumplist_resolve(struct sieve_jumplist *jlist);
87
87
 
88
 
/*
89
 
 * Code generation API
 
88
/* 
 
89
 * Code generation API 
90
90
 */
91
91
 
92
92
bool sieve_generate_argument
93
 
        (const struct sieve_codegen_env *cgenv, struct sieve_ast_argument *arg,
 
93
        (const struct sieve_codegen_env *cgenv, struct sieve_ast_argument *arg, 
94
94
                struct sieve_command *cmd);
95
95
bool sieve_generate_arguments
96
 
        (const struct sieve_codegen_env *cgenv, struct sieve_command *cmd,
 
96
        (const struct sieve_codegen_env *cgenv, struct sieve_command *cmd, 
97
97
                struct sieve_ast_argument **last_arg_r);
98
98
bool sieve_generate_argument_parameters
99
 
        (const struct sieve_codegen_env *cgenv, struct sieve_command *cmd,
 
99
        (const struct sieve_codegen_env *cgenv, struct sieve_command *cmd, 
100
100
                struct sieve_ast_argument *arg);
101
101
 
102
102
bool sieve_generate_block
103
103
        (const struct sieve_codegen_env *cgenv, struct sieve_ast_node *block);
104
104
bool sieve_generate_test
105
 
        (const struct sieve_codegen_env *cgenv, struct sieve_ast_node *tst_node,
 
105
        (const struct sieve_codegen_env *cgenv, struct sieve_ast_node *tst_node, 
106
106
                struct sieve_jumplist *jlist, bool jump_true);
107
107
struct sieve_binary *sieve_generator_run
108
108
        (struct sieve_generator *gentr, struct sieve_binary_block **sblock_r);
109
109
 
110
110
#endif /* __SIEVE_GENERATOR_H */
 
111