Changeset 88086db for storage_xml.c


Ignore:
Timestamp:
2006-06-25T17:23:27Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6ee9d2d
Parents:
6e1fed7
Message:

Added versioning information to the XML-file (convenient for later format
changes), got rid of confusing "Password successfully changed" message
when the user uses the identify-command and protected rc4_decode() against
short inputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • storage_xml.c

    r6e1fed7 r88086db  
    4040   BitlBee would be a better solution. But this will work for now... */
    4141#define XML_PASS_ERRORMSG "Wrong username or password"
     42#define XML_FORMAT_VERSION 1
    4243
    4344struct xml_parsedata
     
    410411        pass_buf = base64_encode( (char*) pass_md5, 21 );
    411412       
    412         if( !xml_printf( fd, "<user nick=\"%s\" password=\"%s\">\n", irc->nick, pass_buf ) )
     413        if( !xml_printf( fd, "<user nick=\"%s\" password=\"%s\" version=\"%d\">\n", irc->nick, pass_buf, XML_FORMAT_VERSION ) )
    413414                goto write_error;
    414415       
Note: See TracChangeset for help on using the changeset viewer.