Add xapi-libs.spec to .gitignore

Signed-off-by: John Else <john.else@citrix.com>
XOP-229: stunnel cache improvements

Raise limits to 22 stunnels, idle 5min, age 3h.
Discard cache index entries for endpoints with no tunnels.
Better hashtable initial capacities.
Debug-logging to enable calculation of time saved by cache.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Merge pull request #114 from thomassa/xop229-stunnel-cache

Xop229 stunnel cache
Allow the IDL to generate code for recursive datatypes

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #115 from jonludlam/rpc-light-fix

Allow the IDL to generate code for recursive datatypes
Fix Xmlrpc.a_of_response such that it doesn't call string_of_*

Also expose json_of_response (Rpc.response -> Rpc.t) which returns
the Rpc.t encoded Jsonrpc response suitable for calling to_string on.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #116 from jonludlam/rpc-light-fixes

Fix Xmlrpc.a_of_response such that it doesn't call string_of_*
Add script which can fix the broken commits in this repository

Note the resulting hashes are (of course) different.
Merge pull request #117 from djs55/fix-broken-commits

Add script which can fix the broken commits in this repository
CA-94829: Bindings to the TCP keepalive settings

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #119 from jonludlam/keepalives

CA-94829: Bindings to the TCP keepalive settings
CA-97947: Case-desensitise matching of variant types

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #121 from jonludlam/rpc-light-lower

CA-97947: Case-desensitise matching of variant types
Add the Int32 type to rpc-light.

Note that the autogen code never generates this, it's purely
intended for places where for whatever reason you really need to
marshal an int32 into an xmlrpc <i4> tag.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #122 from jonludlam/rpc-light-int32

Add the Int32 type to rpc-light.
XOP-229: Stored in Stunnel.t if the connection is verified.

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

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

Signed-off-by: Jerome Maloberti <jerome.maloberti@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>
Use unbuffered I/O to read from /dev/(u)random

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@ocamlpro.com>