make secrets template transparent

master
Gernot 3 weeks ago
parent 8e80564cf5
commit 53b109dd2b

2
.gitignore vendored

@ -91,4 +91,4 @@ mono/*.c
mono/*.h
# test
/test/secrets.hh
/test/secrets.cc

@ -0,0 +1,15 @@
/** @file test/secrets.hh
* @brief variable declarations for working test data
*
* Populate those variables in a custom file secrets.cc by defining populate_secrets() accordingly.
*/
#include "../src/login.hh"
using namespace pEp::Mail;
std::string mailaddress;
std::string password;
Login lsend; // = Login(Login::smtps, "smtp.example.com", 587, "username", password, Login::auth_method_t::START_TLS);
Login lrecv; // = Login(Login::imaps, "imap.example.com", 143, "username", password, Login::auth_method_t::START_TLS);
void populate_secrets();

@ -59,6 +59,7 @@ int main(int argc, char** argv)
});
// Prepare Config
populate_secrets();
pEpIdent own_ident = createOwnIdent(mailaddress);
pEpTransportMail::ConfigMail cfg{ own_ident.get(), lsend, lrecv };

Loading…
Cancel
Save