module Rpc_ssl:Securing RPC by SSLsig
..end
The following configuration objects allow it to encapsulate a
stream with SSL. Note that this is only possible with stream
sockets.
SSL is only supported for the new Rpc_client.create2
interface.
If you are using ocamlrpcgen
look for the generated
create_client2
functions.
Use `Socket(Rpc.Tcp, connector, (Rpc_ssl.ssl_client_socket_config ctx))
as mode2
argument for the create2
function. The connector
can
be any supported connector. Pass the SSL context as ctx
.
class ssl_client_socket_config :Ssl.context ->
Rpc_client.socket_config
val ssl_client_socket_config : Ssl.context -> Rpc_client.socket_config
SSL is only supported for the new Rpc_server.create2
interface.
If you are using ocamlrpcgen
new-style functions are generated
when you pass the -srv2 argument.
Use `Socket(Rpc.Tcp, connector, (Rpc_ssl.ssl_server_socket_config ctx))
as mode2
argument for the create2
function. The connector
can
be any supported connector. Pass the SSL context as ctx
.
class ssl_server_socket_config :?get_peer_user_name:Ssl.context -> Ssl.socket -> string option -> Ssl.context ->
Rpc_server.socket_config
val ssl_server_socket_config : ?get_peer_user_name:(Ssl.context -> Ssl.socket -> string option) ->
Ssl.context -> Rpc_server.socket_config