Skip to content
Snippets Groups Projects
  1. Mar 06, 2018
  2. Mar 03, 2018
    • deuce's avatar
      Store the certificate context in scfg_t. This allows static services to be · 81de76be
      deuce authored
      TLS servers without all of them needing to separately load the ssl certificate.
      
      It's destroyed in free_scfg(), and the config *must* be prepped both to
      destroy the certificate and to load it.  This is because the "no cert"
      value is -1, not 0, so the prepped flag is all we really have to indicate
      if it's zero because it's a valid certificate or zero because no certificate
      has been loaded.
      81de76be
    • deuce's avatar
      Add ssl_server boolean property. · f8e18537
      deuce authored
      f8e18537
  3. Feb 28, 2018
  4. Feb 23, 2018
  5. Feb 21, 2018
    • deuce's avatar
      Better error reporting in TLS sockets. · 67a52fd7
      deuce authored
      Reduce certificate checking... the default level will not validate the
      certificate used by acme-staging-v02.api.letsencrypt.org.  Presumably, that
      means other Google API stuff won't work either.
      67a52fd7
  6. Feb 20, 2018
  7. Feb 07, 2018
  8. Jan 09, 2018
    • deuce's avatar
      Fix up TLS sessions. · 62af52ba
      deuce authored
      1) Only call crpytFlushData() if there *is* data.
      2) Only call cryptFlushData() once per call to do_CryptFlush()
      3) If cryptPushData() does a short write, flush immediately, regardless of
         the preferences
      4) Pass the whole private data pointer to do_CryptFlush() so it can only
         call cryptFlushData() if there's unflushed data
      5) Extend the private data structure to track unflushed data
      62af52ba
  9. Dec 01, 2016
    • rswindell's avatar
      Error messages logged with errormsg() now contain the name of the C/C++ · b4b6713e
      rswindell authored
      function where the error is being reported from. So the WHERE macro now
      contains the __FUNCTION__ "macro" and the various js*.c files that use the
      WHERE macro to report errors had to be updated too.
      Also, the 'access' argument is now being passed as a signed long rather than
      unsigned long. Status/return values are often passed in here (e.g. from smblib)
      and may be negative. This argument was being displayed with %ld but wasn't
      being passed in as a signed value, so on 64-bit long systems, negative numbers
      were just printed as large (4M+) numbers.
      Also, no need to call getfname() in errormsg() since this is embedded in the
      WHERE macro (since 2009).
      b4b6713e
  10. May 13, 2016
    • rswindell's avatar
      Fix bug introduced in rev 167 (the IPv6 commit): · b4049a3e
      rswindell authored
      calling Socket.bind() with an undefined hostname parameter would result in a
      getaddrinfo() failure, e.g. on Windows, WSAHOST_NOT_FOUND 11001
      The ircd.js passes the value of server.interface_ip_address to socket.bind()
      and when run from jsexec, this property is not defined. So you couldn't run the
      ircd from jsexec or you'd get "!Error 0 binding socket to TCP port xxx".
      Also now setting the socket last_error value upon getaddrinfo() failure so
      if there is a failure, the error message won't include the erroneous "Error 0".
      b4049a3e
    • deuce's avatar
      Fix socket.send() so that it returns the number of bytes sent. The · 698ca0bd
      deuce authored
      underlying send() function is free to send a subset of the bytes, and
      occasionally does (especially on non-blocking sockets).  The return value
      was true if all bytes were sent or false if not all bytes were sent.
      
      The new behaviour is to return the number of bytes sent or null on failure.
      
      This is mostly compatible with existing code which appears to universally use
      if (!sock.send(str))
      
      Cases where it's not compatible are when a zero-length string is sent.  The
      handling of errors is slightly different now too... previously, if you
      retransmitted on failure, the stream would "stutter" now it will have
      "holes".
      698ca0bd
  11. Jan 21, 2016
  12. Jan 13, 2016
  13. Nov 08, 2015
  14. Oct 04, 2015
  15. Aug 30, 2015
  16. Aug 29, 2015
  17. Aug 23, 2015
  18. Aug 22, 2015
  19. Aug 20, 2015
    • deuce's avatar
    • deuce's avatar
      Update to 3.17a · dbbfabf1
      deuce authored
      New Features:
      - Multiple bindings for each service
        Use comma-separated interfaces on Interface= lines in the ini file.
        Default is now "0.0.0.0,::"
      - IPv6 support
      - TLS support for the webserver and (non-static) services
        New TLS option in services.ini (ie: Options=TLS)
      - Decrease LEN_SCAN_CMD to 35 chars, increase the CID field to 45 chars,
        and rename the MAIL_CMD string to IPADDR.  I think this frees up the
        note field for SysOp use.
      dbbfabf1
  20. Dec 11, 2014
  21. Sep 15, 2013
  22. Feb 08, 2013
  23. Jul 21, 2012
  24. Jul 20, 2012
  25. Jul 19, 2012
Loading