Mercurial > pidgin
view gaim2blt.pl @ 4293:79d871c11eb9
[gaim-migrate @ 4546]
This changes to authorization cookie from a fixed length of 0x0100 bytes
to a dynamic length. The cookie AOL sends is always 0x0100 bytes,
but there was a bug report saying,
"I found that Gaim doesn't work with iserverd because it
uses hardcoded authorization cookie length. Why don't
you use TLV length value as auth cookie length ?
ICQ2k+ and winaim works without problems with 64
byte cookies...
AOL can just change cookie len and gaim will became
useless..."
I don't know about useless... but he does have a point.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 11 Jan 2003 09:19:39 +0000 |
parents | 66bf7ecefedd |
children |
line wrap: on
line source
#!/usr/bin/perl -w # Original by Andy Harrison, # Rewrite by Decklin Foster, # Available under the GPL. package Gaim2Blt; use strict; use Getopt::Std; use vars qw(%opts $in_group); getopts('s:', \%opts); die "usage: $0 -s 'screen name' gaim.buddy\n" unless $opts{s}; print <<"EOF"; Config { version 1 } User { screenname "$opts{s}" } Buddy { list { EOF while (<>) { chomp; my ($type, $args) = split ' ', $_, 2; next unless $type; if ($type eq 'g') { print " }\n" if ($in_group); print qq( "$args" {\n); $in_group = 1; } elsif ($type eq 'b') { my ($buddy, $alias) = split /:/, $args; print qq( "$buddy"\n); } } print <<"EOF"; } } } EOF