summaryrefslogtreecommitdiffstats
path: root/src/otr/otr-formats.h
blob: cf895dcb0560ad52fe58abac2fad841683b54109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
 * Off-the-Record Messaging (OTR) modules for IRC
 *
 * Copyright (C) - 2012  David Goulet <dgoulet@ev0ke.net>
 *                 2014  Alexander Færøy <ahf@0x90.dk>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 51
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301,USA
 */

#ifndef IRSSI_OTR_FORMATS_H
#define IRSSI_OTR_FORMATS_H

#include <irssi/src/fe-common/core/formats.h>

/*
 * Must be in sync with the fe_otr_formats array.
 */
enum otr_status_format {
	TXT_OTR_MODULE_NAME,

	/* Status bar format. */
	TXT_OTR_FILL_1,
	TXT_OTR_STB_PLAINTEXT,
	TXT_OTR_STB_FINISHED,
	TXT_OTR_STB_UNKNOWN,
	TXT_OTR_STB_UNTRUSTED,
	TXT_OTR_STB_TRUST,

	/* OTR format. */
	TXT_OTR_FILL_2,
	TXT_OTR_AUTH_ABORTED,
	TXT_OTR_AUTH_INITIATED,
	TXT_OTR_AUTH_ONGOING_ABORTED,
	TXT_OTR_AUTH_RESPONSE,

	TXT_OTR_CTX_LIST_HEADER,
	TXT_OTR_CTX_LIST_ENCRYPTED_LINE,
	TXT_OTR_CTX_LIST_FINISHED_LINE,
	TXT_OTR_CTX_LIST_MANUAL_LINE,
	TXT_OTR_CTX_LIST_PLAINTEXT_LINE,
	TXT_OTR_CTX_LIST_SMP_LINE,
	TXT_OTR_CTX_LIST_UNKNOWN_LINE,
	TXT_OTR_CTX_LIST_UNUSED_LINE,
	TXT_OTR_CTX_LIST_UNVERIFIED_LINE,
	TXT_OTR_CTX_LIST_FOOTER,
	TXT_OTR_CTX_MISSING,
	TXT_OTR_CTX_NICK_MISSING,

	TXT_OTR_FP_ALREADY_DISTRUSED,
	TXT_OTR_FP_ALREADY_TRUSTED,
	TXT_OTR_FP_CTX_ENCRYPTED,
	TXT_OTR_FP_DISTRUSTED,
	TXT_OTR_FP_FORGOTTEN,
	TXT_OTR_FP_INFO,
	TXT_OTR_FP_MISSING,
	TXT_OTR_FP_NICK,
	TXT_OTR_FP_TRUSTED,

	TXT_OTR_KEYGEN_COMPLETED,
	TXT_OTR_KEYGEN_FAILED,
	TXT_OTR_KEYGEN_RUNNING,
	TXT_OTR_KEYGEN_STARTED,

	TXT_OTR_KEYS_UNAVAILABLE,

	TXT_OTR_MSG_ENCRYPTION_ENDED,
	TXT_OTR_MSG_ENCRYPTION_ERROR,
	TXT_OTR_MSG_ENCRYPTION_REQUIRED,
	TXT_OTR_MSG_ERROR,
	TXT_OTR_MSG_GENERAL_ERROR,
	TXT_OTR_MSG_MALFORMED,
	TXT_OTR_MSG_NOT_IN_PRIVATE,
	TXT_OTR_MSG_REFLECTED,
	TXT_OTR_MSG_RESENT,
	TXT_OTR_MSG_UNENCRYPTED,
	TXT_OTR_MSG_UNREADABLE,
	TXT_OTR_MSG_UNRECOGNIZED,

	TXT_OTR_SESSION_ALREADY_FINISHED,
	TXT_OTR_SESSION_ALREADY_SECURED,
	TXT_OTR_SESSION_FINISHED,
	TXT_OTR_SESSION_FINISHING,
	TXT_OTR_SESSION_INITIATING,
	TXT_OTR_SESSION_INSECURE,
	TXT_OTR_SESSION_MISSING,
	TXT_OTR_SESSION_SECURE,
	TXT_OTR_SESSION_UNAUTHENTICATED_WARNING,

	TXT_OTR_SMP_ANSWER_FOOTER,
	TXT_OTR_SMP_ANSWER_HEADER,
	TXT_OTR_SMP_ANSWER_QUESTION,
	TXT_OTR_SMP_FAILURE,
	TXT_OTR_SMP_IN_PROGRESS,
	TXT_OTR_SMP_SECRET_QUESTION,
	TXT_OTR_SMP_SUCCESS
};

extern FORMAT_REC fe_otr_formats[];

#endif /* IRSSI_OTR_FORMATS_H */