diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-02-16 12:15:47 -0500 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-02-16 12:15:47 -0500 |
commit | 7a135101b2e1532392c55643b411e732fc468323 (patch) | |
tree | 98564cb55d5b92284cdc4a5befdd9471ce282c0c /stun/utils.c | |
parent | 72e94d7c98df5223f7b7b78529b10ee86f44956b (diff) | |
download | libnice-7a135101b2e1532392c55643b411e732fc468323.tar.gz |
Find and document every message attribute/error code and from which RFC/Draft they come from.. Also updated the error-codes strings
Diffstat (limited to 'stun/utils.c')
-rw-r--r-- | stun/utils.c | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/stun/utils.c b/stun/utils.c index fde58b5..03664ad 100644 --- a/stun/utils.c +++ b/stun/utils.c @@ -228,29 +228,22 @@ const char *stun_strerror (stun_error_t code) { { STUN_ERROR_TRY_ALTERNATE, "Try alternate server" }, { STUN_ERROR_BAD_REQUEST, "Bad request" }, - { STUN_ERROR_UNAUTHORIZED, "Authorization required" }, - { STUN_ERROR_UNKNOWN_ATTRIBUTE, "Unknown attribute" }, - /* - { STUN_STALE_CREDENTIALS, "Authentication expired" }, - { STUN_INTEGRITY_CHECK_FAILURE, "Incorrect username/password" }, - { STUN_MISSING_USERNAME, "Username required" }, - { STUN_USE_TLS, "Secure connection required" }, - { STUN_MISSING_REALM, "Authentication domain required" }, - { STUN_MISSING_NONCE, "Authentication token missing" }, - { STUN_UNKNOWN_USERNAME, "Unknown user name" }, - */ - { STUN_ERROR_NO_BINDING, "Session expired" }, - { STUN_ERROR_STALE_NONCE, "Authentication token expired" }, - { STUN_ERROR_ACT_DST_ALREADY, "Changing remote peer forbidden" }, - { STUN_ERROR_UNSUPP_TRANSPORT, "Unknown transport protocol" }, - { STUN_ERROR_INVALID_IP, "Address unavailable" }, - { STUN_ERROR_INVALID_PORT, "Port unavailable" }, - { STUN_ERROR_OP_TCP_ONLY, "Invalid operation" }, - { STUN_ERROR_CONN_ALREADY, "Connection already established" }, - { STUN_ERROR_ALLOC_OVER_QUOTA, "Quota reached" }, + { STUN_ERROR_UNAUTHORIZED, "Unauthorized" }, + { STUN_ERROR_UNKNOWN_ATTRIBUTE, "Unknown Attribute" }, + { STUN_ERROR_ALLOCATION_MISMATCH, "Allocation Mismatch" }, + { STUN_ERROR_STALE_NONCE, "Stale Nonce" }, + { STUN_ERROR_ACT_DST_ALREADY, "Active Destination Already Set" }, + { STUN_ERROR_UNSUPPORTED_FAMILY, "Address Family not Supported" }, + { STUN_ERROR_UNSUPPORTED_TRANSPORT, "Unsupported Transport Protocol" }, + { STUN_ERROR_INVALID_IP, "Invalid IP Address" }, + { STUN_ERROR_INVALID_PORT, "Invalid Port" }, + { STUN_ERROR_OP_TCP_ONLY, "Operation for TCP Only" }, + { STUN_ERROR_CONN_ALREADY, "Connection Already Exists" }, + { STUN_ERROR_ALLOCATION_QUOTA_REACHED, "Allocation Quota Reached" }, { STUN_ERROR_ROLE_CONFLICT, "Role conflict" }, - { STUN_ERROR_SERVER_ERROR, "Temporary server error" }, - { STUN_ERROR_SERVER_CAPACITY, "Temporary server congestion" }, + { STUN_ERROR_SERVER_ERROR, "Server Error" }, + { STUN_ERROR_SERVER_CAPACITY, "Insufficient Capacity" }, + { STUN_ERROR_INSUFFICIENT_CAPACITY, "Insufficient Capacity" }, }; const char *str = "Unknown error"; size_t i; |