libzrtp
1.2.0
ZRTP VoIP security
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
include
zrtp_error.h
Go to the documentation of this file.
1
/*
2
* libZRTP SDK library, implements the ZRTP secure VoIP protocol.
3
* Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
4
* Contact: http://philzimmermann.com
5
* For licensing and other legal details, see the file zrtp_legal.c.
6
*
7
* Viktor Krykun <v.krikun at zfoneproject.com>
8
*/
9
10
16
#ifndef __ZRTP_ERROR_H__
17
#define __ZRTP_ERROR_H__
18
19
#include "zrtp_config.h"
20
34
typedef
enum
zrtp_protocol_error_t
35
{
36
zrtp_error_unknown = 0,
37
zrtp_error_timeout = 1,
38
39
zrtp_error_invalid_packet = 0x10,
40
zrtp_error_software
= 0x20,
41
zrtp_error_version
= 0x30,
42
zrtp_error_hello_mistmatch
= 0x40,
44
zrtp_error_hash_unsp
= 0x51,
45
zrtp_error_cipher_unsp
= 0x52,
46
zrtp_error_pktype_unsp
= 0x53,
47
zrtp_error_auth_unsp
= 0x54,
48
zrtp_error_sas_unsp
= 0x55,
49
zrtp_error_no_secret
= 0x56,
51
zrtp_error_possible_mitm1
= 0x61,
52
zrtp_error_possible_mitm2
= 0x62,
53
zrtp_error_possible_mitm3
= 0x63,
55
zrtp_error_auth_decrypt
= 0x70,
56
zrtp_error_nonse_reuse
= 0x80,
57
zrtp_error_equal_zid
= 0x90,
58
zrtp_error_service_unavail
= 0xA0,
59
zrtp_error_goclear_unsp
= 0x100,
61
zrtp_error_wrong_zid
= 0x202,
62
zrtp_error_wrong_meshmac
= 0x203,
63
zrtp_error_count
64
}
zrtp_protocol_error_t
;
65
72
typedef
enum
zrtp_status_t
73
{
74
zrtp_status_ok = 0,
75
zrtp_status_fail
= 1,
76
zrtp_status_bad_param
= 2,
77
zrtp_status_alloc_fail
= 3,
78
zrtp_status_auth_fail
= 4,
79
zrtp_status_cipher_fail
= 5,
80
zrtp_status_algo_fail
= 6,
81
zrtp_status_key_expired
= 7,
82
zrtp_status_buffer_size
= 8,
83
zrtp_status_drop
= 9,
84
zrtp_status_open_fail
= 10,
85
zrtp_status_read_fail
= 11,
86
zrtp_status_write_fail
= 12,
87
zrtp_status_old_pkt
= 13,
88
zrtp_status_rp_fail
= 14,
89
zrtp_status_zrp_fail
= 15,
90
zrtp_status_crc_fail
= 16,
91
zrtp_status_rng_fail
= 17,
92
zrtp_status_wrong_state
= 18,
93
zrtp_status_attack
= 19,
94
zrtp_status_notavailable
= 20,
95
zrtp_status_count
= 21
96
}
zrtp_status_t
;
97
102
#define ZRTP_MIM2_WARNING_STR \
103
"Possible Man-In-The-Middle-Attack! Switching to state Error\n"\
104
"because a packet arrived that was ZRTP_DHPART2, but contained\n"\
105
"a g^y that didn't match the previous ZRTP_COMMIT.\n"
106
107
#define ZRTP_MITM1_WARNING_STR "DH validating failed. (pvi is 1 or p-1), aborted\n"
108
109
#define ZRTP_VERIFIED_INIT_WARNING_STR \
110
"Falling back to cleartext because a packet arrived that was\n"\
111
"ZRTP_CONFIRM1, but which couldn't be verified - the sender must have a different\n"\
112
"shared secret than we have.\n"
113
114
#define ZRTP_VERIFIED_RESP_WARNING_STR \
115
"Falling back to cleartext because a packet arrived that was ZRTP_CONFIRM2,\n"\
116
" but which couldn't be verified - the sender must have a different shared secret than we have.\n"
117
118
#define ZRTP_EQUAL_ZID_WARNING_STR \
119
"Received a ZRTP_HELLO packet with the same ZRTP ID that we have.\n"\
120
" This is likely due to a bug in the software. Ignoring the ZRTP_HELLO\n"\
121
" packet, therefore this call cannot be encrypted.\n"
122
123
#define ZRTP_UNSUPPORTED_COMP_WARNING_STR \
124
" Received ZRTP_HELLO packet with an algorithms field which had a\n"\
125
" list of hashes that didn't include any of our supported hashes. Ignoring\n"\
126
" the ZRTP_HELLO packet, therefore this call cannot be encrypted.\n"
127
128
#define ZRTP_NOT_UNIQUE_NONCE_WARNING_STR \
129
" Received COMMIT with hash value already used in another stream within this ZRTP session\n"
130
131
#define ZRTP_RELAYED_SAS_FROM_NONMITM_STR \
132
" Received SAS Relaying message from endpoint which haven't introduced as MiTM.\n"
133
136
#endif
/* __ZRTP_ERROR_H__ */
Generated on Thu Jan 31 2013 19:23:46 for libzrtp by
1.8.2