XOP-229: Stored in Stunnel.t if the connection is verified.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
XOP-229: Change keep_alive=true and http version = 1.1.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
XOP-229: The stunnel_cache key uses also the verify_cert bool.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-83270: Remove the default value to verify_cert.

It prevents Stunnel.connect of actually checking the certificate.
The line: assert (not (verify_cert && use_tunnel_cache));
must be removed since verify_cert=None is undefined.
However, stunnel_cache need to be able to differentiate verified and
unverified connections after this commit, therefore the changes for
XOP-229 are necessary.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-83270: fix incompatible changes with XOP-229.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-3989/CP-3940: Add CPUID masking support for Intel Haswell DT and Ivy Bridge EN and EP

This adds CPU models 0x3c and 0x3e to the whitelist.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-4465 contribution: less stunnel-related logging.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-105080: remove some logging. Avoid writing sensitive data to log file. This also contributes to [CP-4465] for reducing verbose low-value logging.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Debug: allow disabling specific log levels

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Http-svr: remove http_critical logs

They aren't useful and are a source of lots of log spam.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-105004: Enable SO_KEEPALIVE for stunnel client

We should also consider fine tweaking KEEPALIVE parameters when we upgrade to the new version of stunnel.

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Syslog -> Syslog_transitional
Merge pull request #2 from simonjbeaumont/CP-4405-missing-commits

CP-4405: Pull relevant commits from xen-api-libs