Mercurial > pidgin.yaz
comparison libpurple/connection.h @ 20821:beaa1d9b5c1b
PURPLE_NUM_REASONS should not be a member of the enum.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Thu, 11 Oct 2007 13:23:18 +0000 |
parents | bc3c5daaf7aa |
children | c521b0f72a7b |
comparison
equal
deleted
inserted
replaced
20820:bc3c5daaf7aa | 20821:beaa1d9b5c1b |
---|---|
62 * data). | 62 * data). |
63 */ | 63 */ |
64 PURPLE_REASON_NETWORK_ERROR = 0, | 64 PURPLE_REASON_NETWORK_ERROR = 0, |
65 /** The username or password (or some other credential) was incorrect. | 65 /** The username or password (or some other credential) was incorrect. |
66 */ | 66 */ |
67 PURPLE_REASON_AUTHENTICATION_FAILED, | 67 PURPLE_REASON_AUTHENTICATION_FAILED = 1, |
68 /** libpurple doesn't speak any of the authentication methods the | 68 /** libpurple doesn't speak any of the authentication methods the |
69 * server offered. | 69 * server offered. |
70 */ | 70 */ |
71 PURPLE_REASON_AUTHENTICATION_IMPOSSIBLE, | 71 PURPLE_REASON_AUTHENTICATION_IMPOSSIBLE = 2, |
72 /** libpurple was built without SSL support, and the connection needs | 72 /** libpurple was built without SSL support, and the connection needs |
73 * SSL. | 73 * SSL. |
74 */ | 74 */ |
75 PURPLE_REASON_NO_SSL_SUPPORT, | 75 PURPLE_REASON_NO_SSL_SUPPORT = 3, |
76 /** There was an error negotiating SSL on this connection, or the | 76 /** There was an error negotiating SSL on this connection, or the |
77 * server does not support encryption but an account option was set to | 77 * server does not support encryption but an account option was set to |
78 * require it. | 78 * require it. |
79 */ | 79 */ |
80 PURPLE_REASON_ENCRYPTION_ERROR, | 80 PURPLE_REASON_ENCRYPTION_ERROR = 4, |
81 /** Someone is already connected to the server using the name you are | 81 /** Someone is already connected to the server using the name you are |
82 * trying to connect with. | 82 * trying to connect with. |
83 */ | 83 */ |
84 PURPLE_REASON_NAME_IN_USE, | 84 PURPLE_REASON_NAME_IN_USE = 5, |
85 | 85 |
86 /** The username/server/other preference for the account isn't valid. | 86 /** The username/server/other preference for the account isn't valid. |
87 * For instance, on IRC the screen name cannot contain white space. | 87 * For instance, on IRC the screen name cannot contain white space. |
88 * This reason should not be used for incorrect passwords etc: use | 88 * This reason should not be used for incorrect passwords etc: use |
89 * #PURPLE_REASON_AUTHENTICATION_FAILED for that. | 89 * #PURPLE_REASON_AUTHENTICATION_FAILED for that. |
90 * | 90 * |
91 * @todo This reason really shouldn't be necessary. Usernames and | 91 * @todo This reason really shouldn't be necessary. Usernames and |
92 * other account preferences should be validated when the | 92 * other account preferences should be validated when the |
93 * account is created. | 93 * account is created. |
94 */ | 94 */ |
95 PURPLE_REASON_INVALID_SETTINGS, | 95 PURPLE_REASON_INVALID_SETTINGS = 6, |
96 | 96 |
97 /** The server did not provide a SSL certificate. */ | 97 /** The server did not provide a SSL certificate. */ |
98 PURPLE_REASON_CERT_NOT_PROVIDED, | 98 PURPLE_REASON_CERT_NOT_PROVIDED = 7, |
99 /** The server's SSL certificate could not be trusted. */ | 99 /** The server's SSL certificate could not be trusted. */ |
100 PURPLE_REASON_CERT_UNTRUSTED, | 100 PURPLE_REASON_CERT_UNTRUSTED = 8, |
101 /** The server's SSL certificate has expired. */ | 101 /** The server's SSL certificate has expired. */ |
102 PURPLE_REASON_CERT_EXPIRED, | 102 PURPLE_REASON_CERT_EXPIRED = 9, |
103 /** The server's SSL certificate is not yet valid. */ | 103 /** The server's SSL certificate is not yet valid. */ |
104 PURPLE_REASON_CERT_NOT_ACTIVATED, | 104 PURPLE_REASON_CERT_NOT_ACTIVATED = 10, |
105 /** The server's SSL certificate did not match its hostname. */ | 105 /** The server's SSL certificate did not match its hostname. */ |
106 PURPLE_REASON_CERT_HOSTNAME_MISMATCH, | 106 PURPLE_REASON_CERT_HOSTNAME_MISMATCH = 11, |
107 /** The server's SSL certificate does not have the expected | 107 /** The server's SSL certificate does not have the expected |
108 * fingerprint. | 108 * fingerprint. |
109 */ | 109 */ |
110 PURPLE_REASON_CERT_FINGERPRINT_MISMATCH, | 110 PURPLE_REASON_CERT_FINGERPRINT_MISMATCH = 12, |
111 /** The server's SSL certificate is self-signed. */ | 111 /** The server's SSL certificate is self-signed. */ |
112 PURPLE_REASON_CERT_SELF_SIGNED, | 112 PURPLE_REASON_CERT_SELF_SIGNED = 13, |
113 /** There was some other error validating the server's SSL certificate. | 113 /** There was some other error validating the server's SSL certificate. |
114 */ | 114 */ |
115 PURPLE_REASON_CERT_OTHER_ERROR, | 115 PURPLE_REASON_CERT_OTHER_ERROR = 14, |
116 | 116 |
117 /** Some other error occured which fits into none of the other | 117 /** Some other error occured which fits into none of the other |
118 * categories. | 118 * categories. |
119 */ | 119 */ |
120 PURPLE_REASON_OTHER_ERROR, | 120 PURPLE_REASON_OTHER_ERROR = 15 |
121 | |
122 /** The number of PurpleDisconnectReason elements; not a valid reason. | |
123 */ | |
124 PURPLE_NUM_REASONS | |
125 } PurpleDisconnectReason; | 121 } PurpleDisconnectReason; |
122 | |
123 /** 1 more than the value of the last #PurpleDisconnectReason. */ | |
124 #define PURPLE_NUM_REASONS 16 | |
126 | 125 |
127 #include <time.h> | 126 #include <time.h> |
128 | 127 |
129 #include "account.h" | 128 #include "account.h" |
130 #include "plugin.h" | 129 #include "plugin.h" |