mIRC Home    About    Download    Register    News    Help

Topic Options
#250388 - 12/01/15 09:04 PM Possible sockopen regression introduced in 7.38
Corey_ Offline
Pikka bird

Registered: 21/10/09
Posts: 12
The upgrade from mIRC 7.36 to 7.38 appears to have changed something in the sockopen command - a script I wrote to pull API data from my ISP works fine on 7.36 but can't successfully start an https connection on 7.38.

The "tekcheck" alias in the code below should run without feedback and does on 7.36, but on 7.38 you'll see a [10101] Host disconnected error. Could anyone figure out what changed?

Thanks!

Code:
alias tekCheck {
  sockopen -e tekapi api.teksavvy.com 443
}

on 1:sockopen:tekapi: {
  if ($sockerr > 0) echo -t Socket Error on open: $sockerr message: $sock($sockname).wsmsg
  sockclose $sockname
}


Edited by Corey_ (12/01/15 09:10 PM)

Top
#250389 - 12/01/15 09:35 PM Re: Possible sockopen regression introduced in 7.38 [Re: Corey_]
Loki12583 Offline
Hoopy frood

Registered: 22/01/04
Posts: 1252
Accpepted ciphers were changed in 7.37 to the following:
Quote:
ALL:!ADH:!aNULL:!eNULL:!EXP:!3DES:!RC4:!MD5:!PSK:!SRP:!DSS:!SSLv2:!LOW

Since RC4 is the only cipher available on that server the connection fails, you can remove the RC4 exclusion from the string to connect to this host. Add the following line to the [ssl] section of mirc.ini:
Quote:
ciphers=ALL:!ADH:!aNULL:!eNULL:!EXP:!3DES:!MD5:!PSK:!SRP:!DSS:!SSLv2:!LOW

I'd blame the server more than mIRC for offering such weak security, but this situation could be presented to the user more clearly.

Top
#250390 - 12/01/15 10:25 PM Re: Possible sockopen regression introduced in 7.38 [Re: Loki12583]
Corey_ Offline
Pikka bird

Registered: 21/10/09
Posts: 12
That was it! Thank you smile

Top