changeset 29844:9882971c8085

jabber: Check in some new strings under the freeze radar (no code yet). "Channel Binding" is ugly and needs to be replaced with a user-friendly term
author Paul Aurich <paul@darkrain42.org>
date Thu, 29 Apr 2010 03:57:14 +0000
parents e96c7113d32b
children ce87ffff1fcc
files libpurple/protocols/jabber/auth_scram.c
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth_scram.c	Wed Apr 28 22:13:51 2010 +0000
+++ b/libpurple/protocols/jabber/auth_scram.c	Thu Apr 29 03:57:14 2010 +0000
@@ -47,6 +47,32 @@
 	g_return_val_if_reached(NULL);
 }
 
+static const struct {
+	const char *error;
+	const char *meaning;
+} server_errors[] = {
+	{ "invalid-encoding",
+		N_("Invalid Encoding")},
+	{ "extensions-not-supported",
+		N_("Unsupported Extension") },
+	{ "channel-bindings-dont-match",
+		N_("Channel Bindings don't match; possible MITM") },
+	{ "server-does-support-channel-binding",
+		N_("Server does support channel binding; possible MITM") },
+	{ "channel-binding-not-supported",
+		N_("Server does not support channel binding") },
+	{ "unsupported-channel-binding-type",
+		N_("Unsupported channel binding method") },
+	{ "unknown-user",
+		N_("User not found") },
+	{ "invalid-username-encoding",
+		N_("Invalid Username Encoding") },
+	{ "no-resources",
+		N_("Resource Constraint") },
+	{ "other-error",
+		N_("Unknown Error") }
+};
+
 guchar *jabber_scram_hi(const JabberScramHash *hash, const GString *str,
                         GString *salt, guint iterations)
 {