/src/dovecot/src/lib-smtp/smtp-syntax.h
Line | Count | Source (jump to first uncovered line) |
1 | | #ifndef SMTP_SYNTAX_H |
2 | | #define SMTP_SYNTAX_H |
3 | | |
4 | | struct smtp_parser; |
5 | | |
6 | | /* |
7 | | * String |
8 | | */ |
9 | | |
10 | | int smtp_string_parse(const char *string, const char **value_r, |
11 | | const char **error_r); |
12 | | void smtp_string_write(string_t *out, const char *value); |
13 | | |
14 | | /* |
15 | | * Xtext encoding |
16 | | */ |
17 | | |
18 | | int smtp_xtext_decode(string_t *out, const char *xtext, bool allow_nul, |
19 | | const char **error_r); |
20 | | int smtp_xtext_parse(const char *xtext, const char **value_r, |
21 | | const char **error_r); |
22 | | |
23 | | void smtp_xtext_encode(string_t *out, const unsigned char *data, size_t size); |
24 | | static inline void |
25 | | smtp_xtext_encode_cstr(string_t *out, const char *data) |
26 | 0 | { |
27 | 0 | smtp_xtext_encode(out, (const unsigned char *)data, strlen(data)); |
28 | 0 | } Unexecuted instantiation: smtp-server-connection.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-syntax.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-params.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-helo.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-starttls.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-auth.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-mail.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-rcpt.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-noop.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-vrfy.c:smtp_xtext_encode_cstr Unexecuted instantiation: smtp-server-cmd-xclient.c:smtp_xtext_encode_cstr |
29 | | |
30 | | /* |
31 | | * HELO domain |
32 | | */ |
33 | | |
34 | | int smtp_helo_domain_parse(const char *helo, bool allow_literal, |
35 | | const char **domain_r); |
36 | | |
37 | | /* |
38 | | * EHLO reply |
39 | | */ |
40 | | |
41 | | bool smtp_ehlo_keyword_is_valid(const char *keyword); |
42 | | bool smtp_ehlo_param_is_valid(const char *param); |
43 | | bool smtp_ehlo_params_are_valid(const char *const *params) ATTR_NULL(1); |
44 | | bool smtp_ehlo_params_str_is_valid(const char *params); |
45 | | |
46 | | int smtp_ehlo_line_parse(const char *ehlo_line, const char **key_r, |
47 | | const char *const **params_r, const char **error_r); |
48 | | |
49 | | #endif |