I'm working on a script that requires me to connect to a SSL Secured FTP. unfortunately the process to do this can't be done with mIRC....

1) connect a normal unencrypted socket
2) issue AUTH SSL/TLS
3) respond to handshake
4) change the non encrypted port to encrypted SSL port

This type of protocol is used in FTPS and probably some others that I am unaware of.

mIRC currently supports opening a socket as SSL or non-SSL, but does not support changing of that socket between each without closing the socket first. In turn, closing the session.