Changeset cf02dd6 for libfaim/admin.c


Ignore:
Timestamp:
Dec 10, 2003, 3:20:45 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b1fe407
Parents:
8c46404
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/admin.c

    re374dee rcf02dd6  
    111111        aim_putsnac(&fr->data, 0x0007, 0x0004, 0x0000, snacid);
    112112
    113         aim_addtlvtochain_raw(&tl, 0x0001, strlen(newnick), newnick);
    114        
    115         aim_writetlvchain(&fr->data, &tl);
    116         aim_freetlvchain(&tl);
     113        aim_tlvlist_add_raw(&tl, 0x0001, strlen(newnick), newnick);
     114       
     115        aim_tlvlist_write(&fr->data, &tl);
     116        aim_tlvlist_free(&tl);
    117117       
    118118        aim_tx_enqueue(sess, fr);
     
    139139
    140140        /* new password TLV t(0002) */
    141         aim_addtlvtochain_raw(&tl, 0x0002, strlen(newpw), newpw);
     141        aim_tlvlist_add_raw(&tl, 0x0002, strlen(newpw), newpw);
    142142
    143143        /* current password TLV t(0012) */
    144         aim_addtlvtochain_raw(&tl, 0x0012, strlen(curpw), curpw);
    145 
    146         aim_writetlvchain(&fr->data, &tl);
    147         aim_freetlvchain(&tl);
     144        aim_tlvlist_add_raw(&tl, 0x0012, strlen(curpw), curpw);
     145
     146        aim_tlvlist_write(&fr->data, &tl);
     147        aim_tlvlist_free(&tl);
    148148
    149149        aim_tx_enqueue(sess, fr);
     
    168168        aim_putsnac(&fr->data, 0x0007, 0x0004, 0x0000, snacid);
    169169
    170         aim_addtlvtochain_raw(&tl, 0x0011, strlen(newemail), newemail);
    171        
    172         aim_writetlvchain(&fr->data, &tl);
    173         aim_freetlvchain(&tl);
     170        aim_tlvlist_add_raw(&tl, 0x0011, strlen(newemail), newemail);
     171       
     172        aim_tlvlist_write(&fr->data, &tl);
     173        aim_tlvlist_free(&tl);
    174174       
    175175        aim_tx_enqueue(sess, fr);
     
    205205        /* This is 0x0013 if unable to confirm at this time */
    206206
    207         tl = aim_readtlvchain(bs);
     207        tl = aim_tlvlist_read(bs);
    208208
    209209        if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
Note: See TracChangeset for help on using the changeset viewer.