| 1 | #ifndef SHOWPASS_HH |
| 2 | #define SHOWPASS_HH |
| 3 | |
| 4 | #include <gpgme++/context.h> |
| 5 | #include <gpgme++/data.h> |
| 6 | |
| 7 | #include <fstream> |
| 8 | |
| 9 | class Showpass { |
| 10 | public: |
| 11 | std::string otpSav = ""; |
| 12 | |
| 13 | static void otpupdate_cb(void *o); |
| 14 | std::string exec(const char *file, bool stfu); |
| 15 | |
| 16 | private: |
| 17 | void clean_up(GpgME::Context &ctx, GpgME::Data &in, GpgME::Data &out, |
| 18 | std::ifstream &gpgfile); |
| 19 | }; |
| 20 | |
| 21 | #endif |