zrtp_error.h File Reference

Go to the source code of this file.

Defines

#define ZRTP_MIM2_WARNING_STR
#define ZRTP_MITM1_WARNING_STR   "DH validating failed. (pvi is 1 or p-1), aborted\n"
#define ZRTP_VERIFIED_INIT_WARNING_STR
#define ZRTP_VERIFIED_RESP_WARNING_STR
#define ZRTP_EQUAL_ZID_WARNING_STR
#define ZRTP_UNSUPPORTED_COMP_WARNING_STR
#define ZRTP_NOT_UNIQUE_NONCE_WARNING_STR   " Received COMMIT with hash value already used in another stream within this ZRTP session\n"
#define ZRTP_RELAYED_SAS_FROM_NONMITM_STR   " Received SAS Relaying message from endpoint which have't introduced as MiTM.\n"

Typedefs

typedef enum zrtp_protocol_error zrtp_protocol_error_t
 Define protocol error codes according to ZRTP Internet Draft sec. 6.9.

Enumerations

enum  zrtp_protocol_error {
  zrtp_error_unknown = 0, zrtp_error_timeout = 1, zrtp_error_invalid_packet = 0x10, zrtp_error_software = 0x20,
  zrtp_error_version = 0x30, zrtp_error_hello_mistmatch = 0x40, zrtp_error_hash_unsp = 0x51, zrtp_error_cipher_unsp = 0x52,
  zrtp_error_pktype_unsp = 0x53, zrtp_error_auth_unsp = 0x54, zrtp_error_sas_unsp = 0x55, zrtp_error_possible_mitm1 = 0x61,
  zrtp_error_possible_mitm2 = 0x62, zrtp_error_possible_mitm3 = 0x63, zrtp_error_auth_decrypt = 0x70, zrtp_error_nonse_reuse = 0x80,
  zrtp_error_equal_zid = 0x90, zrtp_error_service_unavail = 0xA0, zrtp_error_goclear_unsp = 0x100, zrtp_error_wrong_meshash = 0x201,
  zrtp_error_wrong_zid = 0x202, zrtp_error_wrong_meshmac = 0x203
}
 Define protocol error codes according to ZRTP Internet Draft sec. 6.9. More...
enum  zrtp_status_t {
  zrtp_status_ok = 0, zrtp_status_fail = 1, zrtp_status_bad_param = 2, zrtp_status_alloc_fail = 3,
  zrtp_status_dealloc_fail = 4, zrtp_status_init_fail = 5, zrtp_status_terminus = 6, zrtp_status_auth_fail = 7,
  zrtp_status_cipher_fail = 8, zrtp_status_algo_fail = 11, zrtp_status_no_such_op = 12, zrtp_status_no_ctx = 13,
  zrtp_status_cant_check = 14, zrtp_status_key_expired = 15, zrtp_status_buffer_size = 16, zrtp_status_drop = 17,
  zrtp_status_forward = 18, zrtp_status_changed = 19, zrtp_status_open_fail = 22, zrtp_status_close_fail = 23,
  zrtp_status_read_fail = 24, zrtp_status_write_fail = 25, zrtp_status_skip = 26, zrtp_status_old_pkt = 27,
  zrtp_status_rp_fail = 28, zrtp_status_zrtprp_fail = 29, zrtp_status_crc_fail = 30, zrtp_status_rng_fail = 31,
  zrtp_status_wrong_state = 32, zrtp_status_attack = 33
}
 libzrtp functions error codes. Note that the value of err_status_ok is equal to zero. This can simplify error checking somewhat. More...


Define Documentation

#define ZRTP_EQUAL_ZID_WARNING_STR

Value:

"Received a ZRTP_HELLO packet with the same ZRTP ID that we have.\n"\
    " This is likely due to a bug in the software. Ignoring the ZRTP_HELLO\n"\
    " packet, therefore this call cannot be encrypted.\n"

Definition at line 123 of file zrtp_error.h.

#define ZRTP_MIM2_WARNING_STR

Value:

"Possible Man-In-The-Middle-Attack! Switching to state Error\n"\
    "because a packet arrived that was ZRTP_DHPART2, but contained\n"\
    "a g^y that didn't match the previous ZRTP_COMMIT.\n"

Definition at line 107 of file zrtp_error.h.

#define ZRTP_MITM1_WARNING_STR   "DH validating failed. (pvi is 1 or p-1), aborted\n"

Definition at line 112 of file zrtp_error.h.

#define ZRTP_NOT_UNIQUE_NONCE_WARNING_STR   " Received COMMIT with hash value already used in another stream within this ZRTP session\n"

Definition at line 133 of file zrtp_error.h.

#define ZRTP_RELAYED_SAS_FROM_NONMITM_STR   " Received SAS Relaying message from endpoint which have't introduced as MiTM.\n"

Definition at line 136 of file zrtp_error.h.

#define ZRTP_UNSUPPORTED_COMP_WARNING_STR

Value:

" Received ZRTP_HELLO packet with an algorithms field which had a\n"\
    " list of hashes that didn't include any of our supported hashes. Ignoring\n"\
    " the ZRTP_HELLO packet, therefore this call cannot be encrypted.\n"

Definition at line 128 of file zrtp_error.h.

#define ZRTP_VERIFIED_INIT_WARNING_STR

Value:

"Falling back to cleartext because a packet arrived that was\n"\
    "ZRTP_CONFIRM1, but which couldn't be verified - the sender must have a different\n"\
    "shared secret than we have.\n"

Definition at line 114 of file zrtp_error.h.

#define ZRTP_VERIFIED_RESP_WARNING_STR

Value:

"Falling back to cleartext because a packet arrived that was ZRTP_CONFIRM2,\n"\
    " but which couldn't be verified - the sender must have a different shared secret than we have.\n"

Definition at line 119 of file zrtp_error.h.


This file is part of the documentation for Zfone.
Copyright ©  2006-2008 Philip R. Zimmermann. All rights reserved.
Generated on Mon November 10 2008 by doxygen 1.5.7-20060202. Written by Viktor Krikun, © 2006-2008