From OpenSCADAWiki
Jump to: navigation, search

Transports

  • Sockets,SSL: Appended for support by the port group in the input transports, that is connection to first free. The input transports appended by a configuration field of properties of the initiative connection and the associated output transports.
  • SSL:
    • Expanded by support of the initiative connections:
      • SSL connection code of TSocketOut::{start,stop}() moved to static ones TSocketOut::{connectSSL,disconnectSSL}() for using in the input transport;
      • SSL connection code of TSocketIn::Task() moved to TSocketIn::{start,stop}();
      • removed for support the SSL algorithms and versions specifying in the mode due to that removing in the OpenSSL library and that was not used mostly, so there used only TLS_{client,server}_method() for new libraries (> 1.1) and SSLv23_{client,server}_method() for old ones.
    • FIX: TSocketOut::messIO() prevented from hang at endlessly reading by BIO_read() after the socket closing, by checking errno for EAGAIN.
    • The SSL context moved to the generic module object separately for input (ctxIn) and output (ctxOut) parts and the ciphers information was added for:
      • the generic module object by SSL_CTX_get_ciphers();
      • input-server transport status for SSL_get_shared_ciphers(), SSL_get_client_ciphers() and SSL_get1_supported_ciphers() or SSL_get_ciphers();
      • output-client status for SSL_get1_supported_ciphers() or SSL_get_ciphers().
    • The input and output transports appended by control MSS and the input transports appended by control the system input buffer, both taken from Transport.Sockets.