Page MenuHomePhabricator

[services] Tunnelbroker - Remove `cryptopp` usage from the C++ codebase
ClosedPublic

Authored by max on Dec 19 2022, 12:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 6:28 AM
Unknown Object (File)
Mon, Nov 4, 8:30 AM
Unknown Object (File)
Mon, Nov 4, 8:30 AM
Unknown Object (File)
Mon, Nov 4, 8:30 AM
Unknown Object (File)
Mon, Nov 4, 5:54 AM
Unknown Object (File)
Mon, Nov 4, 5:54 AM
Unknown Object (File)
Mon, Nov 4, 5:53 AM
Unknown Object (File)
Mon, Nov 4, 5:53 AM
Subscribers

Details

Summary

This diff removes deprecated C++ code related to the use of cryptopp library.
In D5947 we are switched to using the Rust function for the signed string verification and we don't need the cryptopp and related C++ code base anymore.

Removing cryptopp from the dependencies is in the following D5949.

Linear task: ENG-2492

Test Plan

The Tunnelbroker server application is successfully built.

Diff Detail

Repository
rCOMM Comm
Branch
remove-cryptopp-remove-from-cpp
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max edited the test plan for this revision. (Show Details)
max added a reviewer: bartek. max added 1 blocking reviewer(s): jon.
max published this revision for review.Dec 21 2022, 6:07 AM

As we have trouble using Nix in the CI gate please ignore the Nix build fail for now.

rebase should fix CI gate

This revision is now accepted and ready to land.Dec 21 2022, 2:06 PM
This revision now requires review to proceed.Dec 23 2022, 7:48 AM

Adding @tomek for a final pass as this is a C++ part of the codebase.

Why is the verification moved outside the newSessionHandler?

This revision is now accepted and ready to land.Dec 27 2022, 4:00 AM
In D5948#181364, @tomek wrote:

Why is the verification moved outside the newSessionHandler?

We are verifying now on the Rust side in D5947 and no need to call it from the C++ side anymore because we are using the Rust string verification function from D5945. We are returning an error in case the string verification failed and we can send it from the Rust now.

Rebasing on master and merging fix.