1. 26 Sep, 2016 1 commit
    • Andres AG's avatar
      Rename net.{c,h} to net_sockets.{c,h} · 788aa4a8
      Andres AG authored
      The library/net.c and its corresponding include/mbedtls/net.h file are
      renamed to library/net_sockets.c and include/mbedtls/net_sockets.h
      respectively. This is to avoid naming collisions in projects which also
      have files with the common name 'net'.
      788aa4a8
  2. 04 Sep, 2015 1 commit
  3. 28 Jul, 2015 1 commit
  4. 01 Jul, 2015 1 commit
    • Manuel Pégourié-Gonnard's avatar
      Add guards for closed socket in net.c · 9bd0afdb
      Manuel Pégourié-Gonnard authored
      This is particularly problematic when calling FD_SET( -1, ... ), but let's
      check it in all functions.
      
      This was introduced with the new API and the fact the net_free() now sets the
      internal fd to -1 in order to mark it as closed: now using this information.
      9bd0afdb
  5. 30 Jun, 2015 3 commits
  6. 25 Jun, 2015 1 commit
    • Manuel Pégourié-Gonnard's avatar
      Fix potential NULL dereference · 0761733c
      Manuel Pégourié-Gonnard authored
      We document that either of recv or recv_timeout may be NULL, but for TLS we
      always used recv... Thanks Coverity for catching that.
      (Not remotely trigerrable: local configuration.)
      
      Also made me notice net_recv_timeout didn't do its job properly.
      0761733c
  7. 23 Jun, 2015 1 commit
  8. 29 May, 2015 1 commit
  9. 14 May, 2015 3 commits
  10. 11 May, 2015 1 commit
  11. 15 Apr, 2015 1 commit
  12. 08 Apr, 2015 1 commit
  13. 10 Mar, 2015 1 commit
  14. 06 Mar, 2015 1 commit
  15. 10 Feb, 2015 1 commit
  16. 28 Jan, 2015 1 commit
  17. 23 Jan, 2015 4 commits
  18. 22 Jan, 2015 1 commit
  19. 21 Oct, 2014 4 commits
  20. 17 Dec, 2013 1 commit
  21. 13 Feb, 2012 1 commit
  22. 18 Nov, 2011 1 commit
  23. 21 Jun, 2011 1 commit
  24. 20 May, 2011 1 commit
  25. 18 May, 2011 1 commit
    • Paul Bakker's avatar
      - Changed behaviour of net_recv(), ssl_fetch_input() and ssl_read().... · 831a755d
      Paul Bakker authored
       - Changed behaviour of net_recv(), ssl_fetch_input() and ssl_read(). net_recv() now  returns 0 on EOF instead of POLARSSL_ERR_NET_CONN_RESET. ssl_fetch_input() returns POLARSSL_ERR_SSL_CONN_EOF on an EOF from its f_recv() function. ssl_read() returns 0 if a POLARSSL_ERR_SSL_CONN_EOF is received after the handshake.
       - Network functions now return POLARSSL_ERR_NET_WANT_READ or POLARSSL_ERR_NET_WANT_WRITE instead of the ambiguous POLARSSL_ERR_NET_TRY_AGAIN
      
      
      831a755d
  26. 09 May, 2011 1 commit
    • Paul Bakker's avatar
      - A error_strerror function() has been added to translate between error codes... · 9d781407
      Paul Bakker authored
       - A error_strerror function() has been added to translate between error codes and their description.
       - The error codes have been remapped and combining error codes is now done with a PLUS instead of an OR as error codes used are negative.
       - Descriptions to all error codes have been added.
       - Generation script for error.c has been created to automatically generate error.c from the available error definitions in the headers.
      
      
      9d781407
  27. 24 Apr, 2011 1 commit
  28. 06 Jan, 2011 1 commit
  29. 18 Jul, 2010 2 commits