Skip to content

Commit

Permalink
fix failed refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 5, 2024
1 parent c2f608b commit 361ef8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/dpp/dave/leb128.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ uint64_t read_leb128(const uint8_t*& readAt, const uint8_t* end)
return 0;
}

size_t WriteLeb128(uint64_t value, uint8_t* buffer)
size_t write_leb128(uint64_t value, uint8_t* buffer)
{
int size = 0;
while (value >= 0x80) {
Expand Down
12 changes: 6 additions & 6 deletions src/dpp/dave/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ ::mlspp::CipherSuite::ID ciphersuite_id_for_protocol_version(protocol_version ve
return ::mlspp::CipherSuite::ID::P256_AES128GCM_SHA256_P256;
}

::mlspp::CipherSuite CiphersuiteForProtocolVersion(protocol_version version) noexcept
::mlspp::CipherSuite ciphersuite_for_protocol_version(protocol_version version) noexcept
{
return ::mlspp::CipherSuite{ciphersuite_id_for_protocol_version(version)};
}

::mlspp::CipherSuite::ID CiphersuiteIDForSignatureVersion(signature_version version) noexcept
::mlspp::CipherSuite::ID ciphersuite_id_for_signature_version(signature_version version) noexcept
{
return ::mlspp::CipherSuite::ID::P256_AES128GCM_SHA256_P256;
}

::mlspp::CipherSuite CiphersuiteForSignatureVersion(signature_version version) noexcept
::mlspp::CipherSuite ciphersuite_for_signature_version(signature_version version) noexcept
{
return ::mlspp::CipherSuite{ciphersuite_id_for_protocol_version(version)};
}

::mlspp::Capabilities LeafNodeCapabilitiesForProtocolVersion(protocol_version version) noexcept
::mlspp::Capabilities leaf_node_capabilities_for_protocol_version(protocol_version version) noexcept
{
auto capabilities = ::mlspp::Capabilities::create_default();

Expand All @@ -56,12 +56,12 @@ ::mlspp::Capabilities LeafNodeCapabilitiesForProtocolVersion(protocol_version ve
return capabilities;
}

::mlspp::ExtensionList LeafNodeExtensionsForProtocolVersion(protocol_version version) noexcept
::mlspp::ExtensionList leaf_node_extensions_for_protocol_version(protocol_version version) noexcept
{
return ::mlspp::ExtensionList{};
}

::mlspp::ExtensionList GroupExtensionsForProtocolVersion(
::mlspp::ExtensionList group_extensions_for_protocol_version(
protocol_version version,
const ::mlspp::ExternalSender& externalSender) noexcept
{
Expand Down
4 changes: 2 additions & 2 deletions src/dpp/dave/persisted_key_pair_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static std::filesystem::path GetKeyStorageDirectory()

namespace dpp::dave::mls::detail {

std::shared_ptr<::mlspp::SignaturePrivateKey> GetGenericPersistedKeyPair(key_pair_context_type ctx,
std::shared_ptr<::mlspp::SignaturePrivateKey> get_generic_persisted_key_pair(key_pair_context_type ctx,
const std::string& id,
::mlspp::CipherSuite suite)
{
Expand Down Expand Up @@ -179,7 +179,7 @@ std::shared_ptr<::mlspp::SignaturePrivateKey> GetGenericPersistedKeyPair(key_pai

}

bool DeleteGenericPersistedKeyPair(key_pair_context_type ctx, const std::string& id)
bool delete_generic_persisted_key_pair(key_pair_context_type ctx, const std::string& id)
{
std::error_code errc;
std::filesystem::path dir = GetKeyStorageDirectory();
Expand Down

0 comments on commit 361ef8b

Please sign in to comment.