summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sched.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-04-03 05:20:17 +0000
committeroga <oga@openbsd.org>2009-04-03 05:20:17 +0000
commit462af6b021d6c7785ae7f4d0c2ad57f4c1d260b5 (patch)
tree551709850fafbb1691ee62a929db73e043dadb84 /sys/kern/kern_sched.c
parentFix SEM_UNDO handling for rthreads: use the struct process* instead (diff)
downloadwireguard-openbsd-462af6b021d6c7785ae7f4d0c2ad57f4c1d260b5.tar.xz
wireguard-openbsd-462af6b021d6c7785ae7f4d0c2ad57f4c1d260b5.zip
The smtp auth PLAIN specification is weird. It's valid (apparently for
imap, mostly) to provide "username1\0real_username\0password" as your base64 encoded string for authentication. We currently don't handle that, instead expecting the first byte to be a NUL. So fix that up by scanning for the first string, and ignoring it if it's there. The string is also stupid in that the last bit (password) may not be NUL terminated, so pay attention to that in our decoding and make sure that it's always terminated correctly. It's been discussed, and this decoding really should happen in the unauthenticated process, not in the privileged one, but that is another diff. Problem found by todd@, who kindly helped me debug this and confirmed that it now works with kmail, mutt and thunderbird. "if it makes more stuff work, please commit" jacekm@. -0- - not a smtpd hacker and I resent your implication.
Diffstat (limited to 'sys/kern/kern_sched.c')
0 files changed, 0 insertions, 0 deletions