1. 13 Apr, 2011 1 commit
    • Paul Eggert's avatar
      emacs_write: Return size_t, not ssize_t, to avoid overflow issues. · 273a5f82
      Paul Eggert authored
      * gnutls.c, gnutls.h (emacs_gnutls_write): Return size_t, not ssize_t.
      * sysdep.c, lisp.h (emacs_write): Likewise.
      Without the above change, emacs_gnutls_write and emacs_write had
      undefined behavior and would typically mistakenly report an error
      when writing a buffer whose size exceeds SSIZE_MAX.
      (emacs_read, emacs_write): Remove check for negative size, as the
      Emacs source code has been audited now.
      (emacs_write): Adjust to new signature, making the code look more
      like that of emacs_gnutls_write.
      * process.c (send_process): Adjust to the new signatures of
      emacs_write and emacs_gnutls_write.  Do not attempt to store
      a byte offset into an 'int'; it might overflow.
  2. 10 Apr, 2011 1 commit
    • Jim Meyering's avatar
      use ssize_t and size_t for read- and write-like emacs_gnutls_* functions · 368f4090
      Jim Meyering authored
      * gnutls.c (emacs_gnutls_read): Adjust signature to be more read-like:
      return ssize_t not "int", and use size_t as the buffer length.
      (emacs_gnutls_write): Likewise, and make the buffer pointer "const".
      * gnutls.h: Update declarations.
      * process.c (read_process_output): Use ssize_t, to match.
      (send_process): Likewise.
  3. 25 Jan, 2011 1 commit
  4. 15 Jan, 2011 1 commit
  5. 03 Oct, 2010 1 commit
  6. 29 Sep, 2010 1 commit
  7. 27 Sep, 2010 1 commit
  8. 26 Sep, 2010 1 commit
    • Ted Zlatanov's avatar
      Set up GnuTLS support. · 8af55556
      Ted Zlatanov authored
      * configure.in: Set up GnuTLS.
      * lisp/net/gnutls.el: GnuTLS glue code to set up a connection.
      (obj, LIBES): Set up GnuTLS support.
      * src/config.in: Set up GnuTLS support.
      * src/emacs.c: Set up GnuTLS support and call syms_of_gnutls.
      * src/gnutls.c: The source code for GnuTLS support in Emacs.
      * src/gnutls.h: The GnuTLS glue for Emacs, macros and enums.
      * src/process.c (make_process, Fstart_process)
      (read_process_output, send_process): Set up GnuTLS support for
      process input/output file descriptors.
      * src/process.h: Set up GnuTLS support.