Rework some bits of the networking code.
authorMatthias Schmidt <matthias@dragonflybsd.org>
Tue, 4 Mar 2008 11:36:09 +0000 (11:36 +0000)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Tue, 4 Mar 2008 11:36:09 +0000 (11:36 +0000)
commit6ef9fe01faea341470ea181006af32e96d8e4a48
tree05462649da3af41eab1fc69494dfa3d05eed5e71
parent6a92e48e730b926d5b06038fafc64e2df3630a52
Rework some bits of the networking code.

 o Rename TLSINIT to NOSSL
 o Rename read_remote_command to read_remote.  Replace the remote read method
   with code from femail.c written by Henning Brauer of OpenBSD and licensed
   under a BSD license.  Return the first figure of the return code and check
   the appropriate values.
 o Read the server greeting at first and send EHLO afterwards.
 o Remove check_for_smtp_error().  It is included in read_remote().

This commit fixes some of the issues in issue953.  More code to come.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue953
libexec/dma/crypto.c
libexec/dma/dma.h
libexec/dma/net.c