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)
Mon, Jun 24, 1:45 PM
Unknown Object (File)
Sun, Jun 23, 12:17 AM
Unknown Object (File)
Sat, Jun 22, 10:18 PM
Unknown Object (File)
Fri, Jun 21, 8:53 PM
Unknown Object (File)
May 26 2024, 2:57 PM
Unknown Object (File)
May 24 2024, 5:00 PM
Unknown Object (File)
May 24 2024, 5:00 PM
Unknown Object (File)
May 24 2024, 2:18 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.