projects
/
gnus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* gnus-registry.el: Silence XEmacs byte compiler.
[gnus]
/
lisp
/
sasl.el
diff --git
a/lisp/sasl.el
b/lisp/sasl.el
index
000bca5
..
a5efdd6
100644
(file)
--- a/
lisp/sasl.el
+++ b/
lisp/sasl.el
@@
-1,16
+1,16
@@
;;; sasl.el --- SASL client framework
;;; sasl.el --- SASL client framework
-;; Copyright (C) 2000, 2007
, 2008
Free Software Foundation, Inc.
+;; Copyright (C) 2000, 2007
-2013
Free Software Foundation, Inc.
;; Author: Daiki Ueno <ueno@unixuser.org>
;; Keywords: SASL
;; This file is part of GNU Emacs.
;; Author: Daiki Ueno <ueno@unixuser.org>
;; Keywords: SASL
;; This file is part of GNU Emacs.
-;; GNU Emacs is free software
;
you can redistribute it and/or modify
+;; GNU Emacs is free software
:
you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation
; either version 3, or (at your option)
-;; any later version.
+;; the Free Software Foundation
, either version 3 of the License, or
+;;
(at your option)
any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-18,9
+18,7
@@
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-;; Boston, MA 02110-1301, USA.
+;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;; Commentary:
@@
-88,7
+86,7
@@
The second argument PLIST is the new property list."
(setplist (aref client 4) plist))
(defun sasl-client-set-property (client property value)
(setplist (aref client 4) plist))
(defun sasl-client-set-property (client property value)
- "Add the given
property/value
to CLIENT."
+ "Add the given
PROPERTY/VALUE
to CLIENT."
(put (aref client 4) property value))
(defun sasl-client-property (client property)
(put (aref client 4) property value))
(defun sasl-client-property (client property)
@@
-105,7
+103,7
@@
The second argument PLIST is the new property list."
(defun sasl-make-mechanism (name steps)
"Make an authentication mechanism.
NAME is a IANA registered SASL mechanism name.
(defun sasl-make-mechanism (name steps)
"Make an authentication mechanism.
NAME is a IANA registered SASL mechanism name.
-STEPS is list of continuation function."
+STEPS is list of continuation function
s
."
(vector name
(mapcar
(lambda (step)
(vector name
(mapcar
(lambda (step)
@@
-123,7
+121,7
@@
STEPS is list of continuation function."
(aref mechanism 1))
(defun sasl-find-mechanism (mechanisms)
(aref mechanism 1))
(defun sasl-find-mechanism (mechanisms)
- "Retrieve an apropriate mechanism object from MECHANISMS hints."
+ "Retrieve an ap
p
ropriate mechanism object from MECHANISMS hints."
(let* ((sasl-mechanisms sasl-mechanisms)
(mechanism
(catch 'done
(let* ((sasl-mechanisms sasl-mechanisms)
(mechanism
(catch 'done
@@
-149,9
+147,9
@@
STEPS is list of continuation function."
(defun sasl-next-step (client step)
"Evaluate the challenge and prepare an appropriate next response.
(defun sasl-next-step (client step)
"Evaluate the challenge and prepare an appropriate next response.
-The data type of the value and
optional 2nd argument STEP is nil or
-opaque authentication step which holds the reference to the next action
-
and
the current challenge. At the first time STEP should be set to nil."
+The data type of the value and
2nd argument STEP is nil or opaque
+authentication step which holds the reference to the next action and
+the current challenge. At the first time STEP should be set to nil."
(let* ((steps
(sasl-mechanism-steps
(sasl-client-mechanism client)))
(let* ((steps
(sasl-mechanism-steps
(sasl-client-mechanism client)))
@@
-185,7
+183,7
@@
It contain at least 64 bits of entropy."
;; Don't use microseconds from (current-time), they may be unsupported.
;; Instead we use this randomly inited counter.
(setq sasl-unique-id-char
;; Don't use microseconds from (current-time), they may be unsupported.
;; Instead we use this randomly inited counter.
(setq sasl-unique-id-char
- (% (1+ (or sasl-unique-id-char (logand (random
t
) (1- (lsh 1 20)))))
+ (% (1+ (or sasl-unique-id-char (logand (random) (1- (lsh 1 20)))))
;; (current-time) returns 16-bit ints,
;; and 2^16*25 just fits into 4 digits i base 36.
(* 25 25)))
;; (current-time) returns 16-bit ints,
;; and 2^16*25 just fits into 4 digits i base 36.
(* 25 25)))
@@
-269,5
+267,4
@@
It contain at least 64 bits of entropy."
(provide 'sasl)
(provide 'sasl)
-;;; arch-tag: 8b3326fa-4978-4fda-93e2-cb2c6255f887
;;; sasl.el ends here
;;; sasl.el ends here