Actions
Feature #5725
openAdd STARTTLS support in Sockets
Start date:
05/04/2023
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Description
Hello,
It would be very nice to see STARTTLS to be supported on Sockets too, the AdiIRC supports STARTTLS in /server correctly, if it is possible to extend the support on sockets then this would be very good, i will provide an example code that works in mIRC so you can test it, STARTTLS can be useful and for other codes the example code is just a small example, there is also an other example code that client connects in outlook mail to send or retrieve data, if you want i can provide it for testing.
Additions :
/sockopen -t
$sock() .starttls
Example Code : (credits to Ouims)
alias socktest { sockclose socktest | sockopen socktest irc.swiftirc.net 6667 } ON *:SOCKOPEN:socktest: { if ($sockerr) { if ($sock($sockname).starttls) { echo -sg error happened after ssl handshake (this echo should never occur) } else { echo -sg cannot connect initially } return } if ($sock($sockname).starttls) { echo -sg ssl handshake successful sockwrite -nt $sockname NICK starttls_nickname sockwrite -nt $sockname USER test test test :test return } echo -sg initial connect success .timer 1 2 sockwrite -nt $sockname STARTTLS .timer 1 6 sockopen -t $sockname } ON *:SOCKREAD:socktest: { if ($sockerr) { echo -sg error happened while reading! | sockclose $sockname | return } var %a sockread %a if (!$sockbr) { return } tokenize 32 %a echo 12 -sg rcvd: $1- if ($1 == PING) { sockwrite -nt $sockname PONG $2 } }
- Thanks!
Updated by westor (GR) over 1 year ago
- Tracker changed from Bug to Feature
- Regression deleted (
No)
It's a feature request not bug :P
Actions