soc.2009.telepathy: 0f054951: Make use of TpConnectionStatusReason in ...
sttwister at soc.pidgin.im
sttwister at soc.pidgin.im
Thu May 14 05:55:35 EDT 2009
-----------------------------------------------------------------
Revision: 0f054951a4b82cd0c0b54e626f64cda05323d251
Ancestor: 98c025ccab7f5240486c1754f58071707ff25903
Author: sttwister at soc.pidgin.im
Date: 2009-05-14T09:50:29
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/0f054951a4b82cd0c0b54e626f64cda05323d251
Modified files:
libpurple/protocols/telepathy/telepathy.c
ChangeLog:
Make use of TpConnectionStatusReason in status_changed_cb()
-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c 82c9c0de9d753156642ecbf85a4678a2ce20dd52
+++ libpurple/protocols/telepathy/telepathy.c 53d3cd99c70661c8cab048732b7372125e3e0c67
@@ -180,62 +180,62 @@ status_changed_cb (TpConnection *proxy,
switch (arg_Reason)
{
- case 2:
+ case TP_CONNECTION_STATUS_REASON_NETWORK_ERROR:
reason = "Network error";
error = PURPLE_CONNECTION_ERROR_NETWORK_ERROR;
break;
- case 3:
+ case TP_CONNECTION_STATUS_REASON_AUTHENTICATION_FAILED:
reason = "Authentication failed";
error = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED;
break;
- case 4:
+ case TP_CONNECTION_STATUS_REASON_ENCRYPTION_ERROR:
reason = "Encryption error";
error = PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR;
break;
- case 5:
+ case TP_CONNECTION_STATUS_REASON_NAME_IN_USE:
reason = "Name in use";
error = PURPLE_CONNECTION_ERROR_NAME_IN_USE;
break;
- case 6:
+ case TP_CONNECTION_STATUS_REASON_CERT_NOT_PROVIDED:
reason = "SSL Certificate not provided";
error = PURPLE_CONNECTION_ERROR_CERT_NOT_PROVIDED;
break;
- case 7:
+ case TP_CONNECTION_STATUS_REASON_CERT_UNTRUSTED:
reason = "SSL Certificate is isnged by an untrusted certifying authority";
error = PURPLE_CONNECTION_ERROR_CERT_UNTRUSTED;
break;
- case 8:
+ case TP_CONNECTION_STATUS_REASON_CERT_EXPIRED:
reason = "SSL Certificate expired";
error = PURPLE_CONNECTION_ERROR_CERT_EXPIRED;
break;
- case 9:
+ case TP_CONNECTION_STATUS_REASON_CERT_NOT_ACTIVATED:
reason = "SSL Certificate is not yet valid";
error = PURPLE_CONNECTION_ERROR_CERT_NOT_ACTIVATED;
break;
- case 10:
+ case TP_CONNECTION_STATUS_REASON_CERT_HOSTNAME_MISMATCH:
reason = "SSL Certificate hostname mismatch";
error = PURPLE_CONNECTION_ERROR_CERT_HOSTNAME_MISMATCH;
break;
- case 11:
+ case TP_CONNECTION_STATUS_REASON_CERT_FINGERPRINT_MISMATCH:
reason = "SSL Certificate fingerprint mismatch";
error = PURPLE_CONNECTION_ERROR_CERT_FINGERPRINT_MISMATCH;
break;
- case 12:
+ case TP_CONNECTION_STATUS_REASON_CERT_SELF_SIGNED:
reason = "SSL Certificate is self-signed";
error = PURPLE_CONNECTION_ERROR_CERT_SELF_SIGNED;
break;
- case 13:
+ case TP_CONNECTION_STATUS_REASON_CERT_OTHER_ERROR:
reason = "Error while validating the server's SSL Certificate";
error = PURPLE_CONNECTION_ERROR_CERT_OTHER_ERROR;
break;
More information about the Commits
mailing list