Import commit 32fbe661230e6f8328b962559350efcc20a88b2d from xen-api-libs

Originally by Euan Harris

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
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
Import patch 3e56de90e3eb8777f8d6c7db57664959407eab49 from xen-api-libs

Originally-by: Vincent Bernardoff <vincent.bernardoff@ocamlpro.com>
Release version 0.9.1

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Regenerate OASIS

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #3 from djs55/release.0.9.1

Release.0.9.1
Update to new xentore interface in v1.2.3

We use 'immediate' rather than 'with_xs' and 'transaction'
instead of 'with_xst'

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #4 from djs55/update-xenstore-api

Update to new xentore interface in v1.2.3