tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

dbtool.h (754B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef dbtool_h__
      6 #define dbtool_h__
      7 
      8 #include <string>
      9 #include <vector>
     10 #include "argparse.h"
     11 #include "tool.h"
     12 
     13 class DBTool : public Tool {
     14 public:
     15  bool Run(const std::vector<std::string>& arguments) override;
     16 
     17 private:
     18  void Usage() override;
     19  bool PathHasDBFiles(std::string path);
     20  void ListCertificates();
     21  bool ImportCertificate(const ArgParser& parser);
     22  bool ListKeys();
     23  bool ImportKey(const ArgParser& parser);
     24  bool DeleteCert(const ArgParser& parser);
     25  bool DeleteKey(const ArgParser& parser);
     26 };
     27 
     28 #endif  // dbtool_h__