Skip to content

Commit

Permalink
Removed unused evse_security interface function
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed May 8, 2024
1 parent 3653eca commit c21a090
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
12 changes: 1 addition & 11 deletions interfaces/evse_security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,7 @@ cmds:
$ref: /evse_security#/CertificateHashData
ocsp_response:
description: OCSPResponse class as defined in IETF RFC 6960. DER and then base64 encoded
type: string
retrieve_ocsp_cache:
description: Command to retrieve the OCSP cache file path of the specified certificate hash
arguments:
certificate_hash_data:
description: Certificate hash data that identifies the certificate for which the cache should be retrieved
type: object
$ref: /evse_security#/CertificateHashData
result:
description: Path of data related to the certificate hash, if present
type: string
type: string
is_ca_certificate_installed:
description: Command that indicates of the given CA certificate type is installed
arguments:
Expand Down
11 changes: 0 additions & 11 deletions modules/EvseSecurity/main/evse_securityImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ void evse_securityImpl::handle_update_ocsp_cache(types::evse_security::Certifica
this->evse_security->update_ocsp_cache(conversions::from_everest(certificate_hash_data), ocsp_response);
}

std::string
evse_securityImpl::handle_retrieve_ocsp_cache(types::evse_security::CertificateHashData& certificate_hash_data) {
auto cache = this->evse_security->retrieve_ocsp_cache(conversions::from_everest(certificate_hash_data));

if (cache.has_value()) {
return cache.value();
}

return {};
}

bool evse_securityImpl::handle_is_ca_certificate_installed(types::evse_security::CaCertificateType& certificate_type) {
return this->evse_security->is_ca_certificate_installed(conversions::from_everest(certificate_type));
}
Expand Down
2 changes: 0 additions & 2 deletions modules/EvseSecurity/main/evse_securityImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class evse_securityImpl : public evse_securityImplBase {
handle_get_mo_ocsp_request_data(std::string& certificate_chain) override;
virtual void handle_update_ocsp_cache(types::evse_security::CertificateHashData& certificate_hash_data,
std::string& ocsp_response) override;
virtual std::string
handle_retrieve_ocsp_cache(types::evse_security::CertificateHashData& certificate_hash_data) override;
virtual bool handle_is_ca_certificate_installed(types::evse_security::CaCertificateType& certificate_type) override;
virtual types::evse_security::GetCertificateSignRequestResult
handle_generate_certificate_signing_request(types::evse_security::LeafCertificateType& certificate_type,
Expand Down

0 comments on commit c21a090

Please sign in to comment.