Add SSL mutual authentication support for rdci
The RDC API is changed to pass the certificates to the gRPC. Add the support to add all GPUs in the host to a group. Also before add a GPU to a group, the RDC API will verify that GPU exists or not. Add the support to fetch the temperature metrics. Change-Id: I5857ef03fede233d16e8b2836be120f33172da93
This commit is contained in:
committed by
Chris Freehill
parent
023de40df7
commit
66e4e790c3
@@ -41,8 +41,11 @@ rdc_status_t rdc_shutdown() {
|
||||
}
|
||||
|
||||
rdc_status_t rdc_connect(const char* ipAddress,
|
||||
rdc_handle_t* p_rdc_handle ) {
|
||||
amd::rdc::RdcHandler* (*func_make_handler)(const char*);
|
||||
rdc_handle_t* p_rdc_handle,
|
||||
const char* root_ca, const char* client_cert,
|
||||
const char* client_key ) {
|
||||
amd::rdc::RdcHandler* (*func_make_handler)(const char*,
|
||||
const char*, const char*, const char*);
|
||||
|
||||
if (!ipAddress || !p_rdc_handle) {
|
||||
return RDC_ST_FAIL_LOAD_MODULE;
|
||||
@@ -63,7 +66,8 @@ rdc_status_t rdc_connect(const char* ipAddress,
|
||||
}
|
||||
|
||||
*p_rdc_handle = static_cast<rdc_handle_t>
|
||||
(func_make_handler(ipAddress));
|
||||
(func_make_handler(ipAddress,
|
||||
root_ca, client_cert, client_key));
|
||||
return RDC_ST_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user