Ignore:
Timestamp:
2015-05-31T02:40:04Z (9 years ago)
Author:
dequis <dx@…>
Children:
074c9b6
Parents:
2ca933c
git-author:
dequis <dx@…> (07-04-15 12:59:51)
git-committer:
dequis <dx@…> (31-05-15 02:40:04)
Message:

msn: Start of SSL over TCP code (required for MSNP24)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r2ca933c r767b2d1  
    4343        s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
    4444
    45         s = set_add(&acc->set, "port", MSN_NS_PORT, set_eval_int, acc);
     45        s = set_add(&acc->set, "port", NULL, set_eval_int, acc);
    4646        s->flags |= ACC_SET_OFFLINE_ONLY;
    4747
     
    6060        struct im_connection *ic = imcb_new(acc);
    6161        struct msn_data *md = g_new0(struct msn_data, 1);
    62         char *server = set_getstr(&ic->acc->set, "server");
     62        char *server = set_getstr(&ic->acc->set, "server") ? : MSN_SSL_HOST;
     63        int port = set_getint(&ic->acc->set, "port") ? : MSN_SSL_PORT;
    6364
    6465        ic->proto_data = md;
    6566        ic->flags |= OPT_PONGS | OPT_PONGED;
    66 
    67         if (!server) {
    68                 server = "geo.gateway.messenger.live.com";
    69         }
    7067
    7168        if (strchr(acc->user, '@') == NULL) {
     
    8481
    8582        imcb_log(ic, "Connecting");
    86         msn_ns_connect(ic, server,
    87                        set_getint(&ic->acc->set, "port"));
     83
     84        msn_ns_connect(ic, server, port);
    8885
    8986        if (set_getbool(&acc->set, "mail_notifications") && set_getstr(&acc->set, "mail_notifications_handle")) {
Note: See TracChangeset for help on using the changeset viewer.