From e4a01fa0682754bc2283b75eb9ed348d3ae29ee4 Mon Sep 17 00:00:00 2001 From: Hugues de Valon Date: Wed, 23 Sep 2020 15:32:23 +0100 Subject: [PATCH] Update the socket path to new location Signed-off-by: Hugues de Valon --- src/core/basic_client.rs | 3 +++ src/core/ipc_handler/unix_socket.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/basic_client.rs b/src/core/basic_client.rs index 9f49b70..d763028 100644 --- a/src/core/basic_client.rs +++ b/src/core/basic_client.rs @@ -189,6 +189,9 @@ impl BasicClient { /// Before you can use this client for cryptographic operations, you first need to call /// [`set_implicit_provider`](#method.set_implicit_provider). In order to get a list of /// supported providers, call the [`list_providers`](#method.list_providers) method. + /// + /// This client will use the default configuration. That includes using a Protobuf converter + /// for message bodies and a Unix Domain Socket IPC handler. pub fn new(auth_data: AuthenticationData) -> Self { BasicClient { op_client: Default::default(), diff --git a/src/core/ipc_handler/unix_socket.rs b/src/core/ipc_handler/unix_socket.rs index 79f43a3..1be8b46 100644 --- a/src/core/ipc_handler/unix_socket.rs +++ b/src/core/ipc_handler/unix_socket.rs @@ -18,7 +18,7 @@ use std::io::{Error, ErrorKind}; #[cfg(not(feature = "no-fs-permission-check"))] use std::os::unix::fs::MetadataExt; -const DEFAULT_SOCKET_PATH: &str = "/tmp/parsec/parsec.sock"; +const DEFAULT_SOCKET_PATH: &str = "/run/parsec/parsec.sock"; const DEFAULT_TIMEOUT: Duration = Duration::from_secs(1); /// IPC handler for Unix domain sockets