# HG changeset patch # User Paul Aurich # Date 1272513434 0 # Node ID 9882971c8085ef84e167a71bea879b53dbb6de81 # Parent e96c7113d32b4a544336d654b8c478f952443014 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 diff -r e96c7113d32b -r 9882971c8085 libpurple/protocols/jabber/auth_scram.c --- 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) {