1 /* 2 * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include "crypto_client.h" 8 #include <protocols/rpc/common/packed-c/status.h> 9 crypto_client()10crypto_client::crypto_client() : 11 m_client() 12 { 13 service_client_init(&m_client, NULL); 14 } 15 crypto_client(struct rpc_caller_session * session)16crypto_client::crypto_client(struct rpc_caller_session *session) : 17 m_client() 18 { 19 service_client_init(&m_client, session); 20 } 21 ~crypto_client()22crypto_client::~crypto_client() 23 { 24 service_client_deinit(&m_client); 25 } 26 set_caller(struct rpc_caller_session * session)27void crypto_client::set_caller(struct rpc_caller_session *session) 28 { 29 m_client.session = session; 30 } 31 err_rpc_status() const32int crypto_client::err_rpc_status() const 33 { 34 return m_client.rpc_status; 35 } 36 get_service_info() const37struct service_info crypto_client::get_service_info() const 38 { 39 return m_client.service_info; 40 } 41