-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downstream changes from stratum project (#391)
* Downstream changes from stratum project - Disable gnmi-ctl and sgnmi_cli builds so we can build the rest of P4 Control Plane while the Stratum code is being updated. - Update stratum submodule pointer to reference the topic branch. Signed-off-by: Derek G Foster <[email protected]> * Add support for p4_role_config protobuf library Signed-off-by: Derek G Foster <[email protected]> * Update stratum and krnlmon submodule references Signed-off-by: Derek G Foster <[email protected]> * Update stratum submodule reference Signed-off-by: Derek G Foster <[email protected]> * Restore ability to build sgnmi_cli and gnmi-ctl Signed-off-by: Derek G Foster <[email protected]> * Update stratum submodule reference Signed-off-by: Derek G Foster <[email protected]> * Update client help text and documentation Signed-off-by: Derek G Foster <[email protected]> * Make target include directories of p4_role_config public Signed-off-by: Derek G Foster <[email protected]> * Update stratum submodule reference Signed-off-by: Derek G Foster <[email protected]> * Update stratum submodule reference - Incorporate changes downstreamed from stratum project. Signed-off-by: Derek G Foster <[email protected]> --------- Signed-off-by: Derek G Foster <[email protected]>
- Loading branch information
Showing
12 changed files
with
113 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2022-2024 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "client_cert_options.h" | ||
|
||
#include "gflags/gflags.h" | ||
|
||
#define DEFAULT_CERTS_DIR "/usr/share/stratum/certs/" | ||
|
||
void set_client_cert_defaults() { | ||
FLAGS_ca_cert_file = DEFAULT_CERTS_DIR "ca.crt"; | ||
FLAGS_server_key_file = DEFAULT_CERTS_DIR "stratum.key"; | ||
FLAGS_server_cert_file = DEFAULT_CERTS_DIR "stratum.crt"; | ||
FLAGS_client_key_file = DEFAULT_CERTS_DIR "client.key"; | ||
FLAGS_client_cert_file = DEFAULT_CERTS_DIR "client.crt"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2024 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef CLIENT_CERT_OPTIONS_H_ | ||
#define CLIENT_CERT_OPTIONS_H_ | ||
|
||
#include "gflags/gflags.h" | ||
|
||
DECLARE_string(ca_cert_file); | ||
DECLARE_string(client_cert_file); | ||
DECLARE_string(client_key_file); | ||
DECLARE_string(server_cert_file); | ||
DECLARE_string(server_key_file); | ||
|
||
void set_client_cert_defaults(); | ||
|
||
#endif // CLIENT_CERT_OPTIONS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters