Code

multiple fixes in check_smtp from debian (bts #285554):
authorM. Sean Finney <seanius@users.sourceforge.net>
Thu, 13 Oct 2005 10:11:25 +0000 (10:11 +0000)
committerM. Sean Finney <seanius@users.sourceforge.net>
Thu, 13 Oct 2005 10:11:25 +0000 (10:11 +0000)
commit321075cd563ddbba92a6ebb8e59abefb9da1e8c2
tree2b741ac331cfe0e0d1b255e7c8d949df561159ec
parent866709d4b53c05ed065b9cae4aa0dc68d57bc5f4
multiple fixes in check_smtp from debian (bts #285554):
- fix for double free via SSL_CTX_free.  looks like the previous author
  knew this was a problem but didn't care enough to fix it ;p.
- use defines instead of const chars for SMTP strings.
- default to send our fqdn (via gethostbyname lookup on gethostname)
  in the HELO string, as this is an RFC/SMTP requirement.  overridable
  via cmdline.
- use EHLO instead of HELO if using STARTTLS, as it is not SMTP but
  ESMTP.
- verify the server supports STARTTLS before initializing it.
- always send QUIT before disconnecting when possible.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1246 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_smtp.c