SMTP AUTH

Shuhei KOBAYASHI shuhei @ aqua.ocn.ne.jp
1999年 11月 17日 (水) 06:18:48 JST


>>>>> In <14382.29404.742405.85894R @ vlsi.kuee.kyoto-u.ac.jp>,
>>>>> okada @ opaopa.org (岡田 健一 /  Kenichi OKADA) wrote:
> (defun cram-md5-encode (user passphrase response)
>   (base64-encode-string
>    (concat user " "
> 	   (hmac-hex-string
> 	    (hmac-md5 (base64-decode-string 
> 		       response) passphrase)))))
> 
> (defun plain-encode (authorid authenid passphrase)
>   (base64-encode-string
>    (concat authorid "\0" authenid "\0" passphrase)))

ん, ちょっと待った. 外側の base64 は IMAP の仕様であって, SASL の仕様
ではなかったと思います.

SASL 関係の RFC を読んでいると, よくこんな文章を目にしませんか? ↓

| The base64 encoding of challenges and responses, as well as the "+ "
| preceding the responses are part of the IMAP4 profile, not part of
| the SASL specification itself.

-- 
Shuhei KOBAYASHI




More information about the Emacs-mime-ja mailing list