Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/sasl.c

    r3b6eadc r84b045d  
    8989                strcpy( s + 1, jd->username );
    9090                strcpy( s + 2 + strlen( jd->username ), ic->acc->pass );
    91                 reply->text = base64_encode( (unsigned char *)s, len );
     91                reply->text = base64_encode( s, len );
    9292                reply->text_len = strlen( reply->text );
    9393                g_free( s );
     
    185185        struct jabber_data *jd = ic->proto_data;
    186186        struct xt_node *reply = NULL;
    187         char *nonce = NULL, *realm = NULL, *cnonce = NULL;
    188         unsigned char cnonce_bin[30];
     187        char *nonce = NULL, *realm = NULL, *cnonce = NULL, cnonce_bin[30];
    189188        char *digest_uri = NULL;
    190189        char *dec = NULL;
     
    217216                        realm = g_strdup( jd->server );
    218217               
    219                 random_bytes( cnonce_bin, sizeof( cnonce_bin ) );
     218                random_bytes( (unsigned char *) cnonce_bin, sizeof( cnonce_bin ) );
    220219                cnonce = base64_encode( cnonce_bin, sizeof( cnonce_bin ) );
    221220                digest_uri = g_strdup_printf( "%s/%s", "xmpp", jd->server );
Note: See TracChangeset for help on using the changeset viewer.