generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: AssemblyJohn <[email protected]>
- Loading branch information
1 parent
85b10f1
commit b56760f
Showing
13 changed files
with
194 additions
and
59 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Copyright Pionix GmbH and Contributors to EVerest | ||
|
||
#include <evse_security/crypto/interface/crypto_types.hpp> | ||
|
||
namespace evse_security { | ||
|
||
namespace conversions { | ||
|
||
std::string get_certificate_sign_request_result_to_string(CertificateSignRequestResult e) { | ||
|
||
switch (e) { | ||
case CertificateSignRequestResult::Valid: | ||
return "Valid"; | ||
case CertificateSignRequestResult::KeyGenerationError: | ||
return "KeyGenerationError"; | ||
case CertificateSignRequestResult::VersioningError: | ||
return "VersioningError"; | ||
case CertificateSignRequestResult::PubkeyError: | ||
return "PubkeyError"; | ||
case CertificateSignRequestResult::ExtensionsError: | ||
return "ExtensionsError"; | ||
case CertificateSignRequestResult::SigningError: | ||
return "SigningError"; | ||
} | ||
|
||
throw std::out_of_range("No known string conversion for provided enum of type CertificateSignRequestResult"); | ||
} | ||
|
||
} // namespace conversions | ||
|
||
} // namespace evse_security |
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
Oops, something went wrong.