From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83820 Path: news.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.emacs.gnus.general Subject: [PATCH 0/2] Simpler authentication with SASL Date: Sat, 26 Oct 2013 12:54:39 +0200 Message-ID: <1382784881-16736-1-git-send-email-tarleb@moltkeplatz.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382802138 15059 80.91.229.3 (26 Oct 2013 15:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Oct 2013 15:42:18 +0000 (UTC) Cc: Albert Krewinkel To: ding@gnus.org Original-X-From: ding-owner+M32075@lists.math.uh.edu Sat Oct 26 17:42:21 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Va60J-0004Kk-FW for ding-account@gmane.org; Sat, 26 Oct 2013 17:42:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Va5zX-0001on-3j; Sat, 26 Oct 2013 10:41:31 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Va1WV-0000fb-9i for ding@lists.math.uh.edu; Sat, 26 Oct 2013 05:55:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Va1WT-0007Kc-S9 for ding@lists.math.uh.edu; Sat, 26 Oct 2013 05:55:14 -0500 Original-Received: from moltkeplatz.de ([85.214.95.47]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Va1WR-0000Zc-Us for ding@gnus.org; Sat, 26 Oct 2013 12:55:11 +0200 Original-Received: from caffelatte.fritz.box (dslb-178-003-097-186.pools.arcor-ip.net [178.3.97.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by moltkeplatz.de (Postfix) with ESMTPSA id 6895F3200002; Sat, 26 Oct 2013 12:55:05 +0200 (CEST) X-Mailer: git-send-email 1.8.4.rc3 X-Spam-Score: -2.3 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83820 Archived-At: Hello, even though gnus as an implementation of the SASL protocol, no part of gnus other than managesieve makes use of it. A possible explanation is that the current code is a transliteration of some Java program and is rather awkward to use. This is an attempt to fix the situation. SASL authenticating with the proposed code just requires three simple, protocol specific functions. Sample usage of this method is demonstrated in sieve-manage.el. Please let me know what you think of the proposed changes. The patches are also available at github (https://github.com/tarleb/gnus). Cheers, Albert Albert Krewinkel (2): sasl.el: simplify authentication with SASL, make code more lispy sieve-manage.el: adapt sieve-manage to SASL simplification lisp/ChangeLog | 34 +++ lisp/{sasl-cram.el => sasl-cram-md5.el} | 29 ++- lisp/{sasl-digest.el => sasl-digest-md5.el} | 60 ++++-- lisp/sasl-ntlm.el | 24 +-- lisp/sasl.el | 312 ++++++++++++---------------- lisp/sieve-manage.el | 238 +++++++++------------ 6 files changed, 323 insertions(+), 374 deletions(-) rename lisp/{sasl-cram.el => sasl-cram-md5.el} (66%) rename lisp/{sasl-digest.el => sasl-digest-md5.el} (74%) -- 1.8.4.rc3