86994
+ ��膩��鰹申鐃順�渇��膩��� 1 ;;; sasl-cram.el --- CRAM-MD5 module for the SASL client framework
+ ��膩��鰹申鐃順�渇��膩��� 2
+ ��膩��鰹申鐃順�渇��膩��� 3 ;; Copyright (C) 2000, 2007 Free Software Foundation, Inc.
+ ��膩��鰹申鐃順�渇��膩��� 4
+ ��膩��鰹申鐃順�渇��膩��� 5 ;; Author: Daiki Ueno <ueno@unixuser.org>
+ ��膩��鰹申鐃順�渇��膩��� 6 ;; Kenichi OKADA <okada@opaopa.org>
+ ��膩��鰹申鐃順�渇��膩��� 7 ;; Keywords: SASL, CRAM-MD5
+ ��膩��鰹申鐃順�渇��膩��� 8
+ ��膩��鰹申鐃順�渇��膩��� 9 ;; This file is part of GNU Emacs.
+ ��膩��鰹申鐃順�渇��膩��� 10
+ ��膩��鰹申鐃順�渇��膩��� 11 ;; GNU Emacs is free software; you can redistribute it and/or modify
+ ��膩��鰹申鐃順�渇��膩��� 12 ;; it under the terms of the GNU General Public License as published by
+ ��膩��鰹申鐃順�渇��膩��� 13 ;; the Free Software Foundation; either version 3, or (at your option)
+ ��膩��鰹申鐃順�渇��膩��� 14 ;; any later version.
+ ��膩��鰹申鐃順�渇��膩��� 15
+ ��膩��鰹申鐃順�渇��膩��� 16 ;; GNU Emacs is distributed in the hope that it will be useful,
+ ��膩��鰹申鐃順�渇��膩��� 17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ��膩��鰹申鐃順�渇��膩��� 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ ��膩��鰹申鐃順�渇��膩��� 19 ;; GNU General Public License for more details.
+ ��膩��鰹申鐃順�渇��膩��� 20
+ ��膩��鰹申鐃順�渇��膩��� 21 ;; You should have received a copy of the GNU General Public License
+ ��膩��鰹申鐃順�渇��膩��� 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
+ ��膩��鰹申鐃順�渇��膩��� 23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ ��膩��鰹申鐃順�渇��膩��� 24 ;; Boston, MA 02110-1301, USA.
+ ��膩��鰹申鐃順�渇��膩��� 25
+ ��膩��鰹申鐃順�渇��膩��� 26 ;;; Commentary:
+ ��膩��鰹申鐃順�渇��膩��� 27
+ ��膩��鰹申鐃順�渇��膩��� 28 (require 'sasl)
+ ��膩��鰹申鐃順�渇��膩��� 29 (require 'hmac-md5)
+ ��膩��鰹申鐃順�渇��膩��� 30
+ ��膩��鰹申鐃順�渇��膩��� 31 (defconst sasl-cram-md5-steps
+ ��膩��鰹申鐃順�渇��膩��� 32 '(ignore ;no initial response
+ ��膩��鰹申鐃順�渇��膩��� 33 sasl-cram-md5-response))
+ ��膩��鰹申鐃順�渇��膩��� 34
+ ��膩��鰹申鐃順�渇��膩��� 35 (defun sasl-cram-md5-response (client step)
+ ��膩��鰹申鐃順�渇��膩��� 36 (let ((passphrase
+ ��膩��鰹申鐃順�渇��膩��� 37 (sasl-read-passphrase
+ ��膩��鰹申鐃順�渇��膩��� 38 (format "CRAM-MD5 passphrase for %s: "
+ ��膩��鰹申鐃順�渇��膩��� 39 (sasl-client-name client)))))
+ ��膩��鰹申鐃順�渇��膩��� 40 (unwind-protect
+ ��膩��鰹申鐃順�渇��膩��� 41 (concat (sasl-client-name client) " "
+ ��膩��鰹申鐃順�渇��膩��� 42 (encode-hex-string
+ ��膩��鰹申鐃順�渇��膩��� 43 (hmac-md5 (sasl-step-data step) passphrase)))
+ ��膩��鰹申鐃順�渇��膩��� 44 (fillarray passphrase 0))))
+ ��膩��鰹申鐃順�渇��膩��� 45
+ ��膩��鰹申鐃順�渇��膩��� 46 (put 'sasl-cram 'sasl-mechanism
+ ��膩��鰹申鐃順�渇��膩��� 47 (sasl-make-mechanism "CRAM-MD5" sasl-cram-md5-steps))
+ ��膩��鰹申鐃順�渇��膩��� 48
+ ��膩��鰹申鐃順�渇��膩��� 49 (provide 'sasl-cram)
+ ��膩��鰹申鐃順�渇��膩��� 50
+ ��膩��鰹申鐃順�渇��膩��� 51 ;;; arch-tag: 46cb281b-975a-4fe0-a39f-3018691b1b05
+ ��膩��鰹申鐃順�渇��膩��� 52 ;;; sasl-cram.el ends here