1. 23 Oct, 2018 1 commit
    • Peter Wu's avatar
      Fix memleaks of saslconn on error paths · 7c6d3851
      Peter Wu authored
      If mutt_sasl_client_new returns an error, the callers would ignore the
      allocated saslconn resource from sasl_client_new. Be sure to release
      these with sasl_dispose as documented in sasl.h. Likewise, let callers
      (POP/IMAP) dispose the resource on their error paths. SMTP was already
      taken care of. Found with LeakSanitizer in IMAP.
      7c6d3851
  2. 17 Jul, 2018 1 commit
    • Brandon Long's avatar
      Improve OAUTHBEARER support. · 98cc4236
      Brandon Long authored
      Move token refresh commands to their own config variables. Consolidate
      code for refreshing tokens and generating the SASL OAUTHBEARER
      argument in account.c. Add support for OAUTHBEARER to pop.
      
      Fix pop_auth_oauth() mutt_from_base64() call from 1.10.1 release.
      98cc4236
  3. 01 Jun, 2017 1 commit
  4. 11 Oct, 2016 1 commit
  5. 10 Oct, 2016 1 commit
  6. 09 May, 2016 1 commit
    • Derek Martin's avatar
      Change M_* symbols to MUTT_* · 9cafb05c
      Derek Martin authored
      Changeset 23334e967dd7 created a workaround for a namespace conflict
      with Solaris and derivatives.  After some discussion, the team decided
      it would be best to move away from using the "M_" prefix for macros.
      
      This patch was automatically generated by running:
        perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print`
      with the exception that sys_socket.h was exempted.  (That file will
      be backed out subsequent to this commit.)
      
      Thanks to Andras Salamon for supplying the perl script used to make
      this change.
      9cafb05c
  7. 19 Jan, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Make sasl authentication buffers dynamically sized. (see #3804) · 1cab7de7
      Kevin J. McCarthy authored
      The reporter found that the current buffer of HUGE_STRING was
      insufficient in his case to encode the clientout response back to the
      server in imap_auth_sasl().
      
      Since sasl gives us the size of "clientout", we can dynamically malloc
      and resize the buffer as needed.  This patch uses max(LONG_STRING,
      (clientoutlen*2)).  This is sufficient to hold the base64 encoded
      value plus additional prefix/suffix needed in each protocol.
      
      The size is rechecked after each sasl_client_step() and resized as
      needed.
      
      Similar code is in pop_auth_sasl() and smtp_auth_sasl(), so convert
      all three to use a dynamic buffer.
      1cab7de7
  8. 04 Oct, 2013 1 commit
  9. 23 Jul, 2013 1 commit
  10. 03 Dec, 2011 1 commit
    • Dan Fandrich's avatar
      Declare many structures const (closes #3552) · 05df9d08
      Dan Fandrich authored
      Many structs used in mutt are actually constant but are defined
      without the 'const' keyword. This can slow initialization (slightly)
      in some environments due to extra copying and increases the amount of
      writable RAM required at run-time, which can be significant on non-MMU
      systems. Using const can also increase the opportunities for compiler
      optimization.
      
      The attached patch marks many such structures as const. On my test x86
      build, this reduces the size of .data by over 50%.
      05df9d08
  11. 06 Aug, 2010 1 commit
  12. 17 Mar, 2009 1 commit
  13. 27 Aug, 2007 1 commit
  14. 02 Apr, 2007 1 commit
  15. 08 Sep, 2006 1 commit
  16. 17 Sep, 2005 2 commits
  17. 01 Sep, 2005 1 commit
  18. 03 Feb, 2005 1 commit
  19. 10 Sep, 2003 1 commit
  20. 23 Jan, 2003 1 commit
  21. 10 Dec, 2002 1 commit
  22. 30 Aug, 2001 1 commit
  23. 22 Aug, 2001 1 commit
  24. 18 Jun, 2001 1 commit
  25. 13 Jun, 2001 2 commits
  26. 10 May, 2001 1 commit
  27. 15 Feb, 2001 1 commit
  28. 30 Jan, 2001 1 commit
  29. 08 Jan, 2001 1 commit
  30. 10 Oct, 2000 1 commit