Add support for gRPC authenticated communications

Also, make a few namespace corrections and some minor refactoring.

Change-Id: Iedcaf6b43cb7576bc11dfefe980abd190c838831
This commit is contained in:
Chris Freehill
2020-03-02 15:06:01 -06:00
parent 020f6939f7
commit 47fdfa4c7e
28 changed files with 824 additions and 43 deletions
+6 -1
View File
@@ -24,6 +24,9 @@ THE SOFTWARE.
#include <errno.h>
#include <assert.h>
namespace amd {
namespace rdc {
int GetCapability(cap_value_t cap, cap_flag_t cap_type, bool *enabled) {
cap_t caps;
@@ -40,7 +43,6 @@ int GetCapability(cap_value_t cap, cap_flag_t cap_type, bool *enabled) {
}
cap_flag_value_t val;
if (cap_get_flag(caps, cap, cap_type, &val) == -1) {
int ret = errno;
cap_free(caps);
@@ -87,3 +89,6 @@ int ModifyCapability(cap_value_t cap, cap_flag_t cap_type, bool enable) {
}
return 0;
}
} // namespace rdc
} // namespace amd