ultimatepp/bazaar/ProtectServerDemo/main.cpp
micio 5a09fb48d5 Bazaar/Protect : Almost completed web authentication package
git-svn-id: svn://ultimatepp.org/upp/trunk@2773 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-10-12 23:08:09 +00:00

31 lines
530 B
C++

#include <Protect/ProtectServer.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
ProtectServer server;
// setup database
server
.SetAppKey(ScanHexString("AABBCCDDEEFF00112233445566778899"))
.GetDB()
.SetHost("localhost")
.SetDBName("protect_demo")
.SetUserName("protect_user")
.SetPassword("protect")
;
server
.GetSmtp()
.Host("localhost")
.Port(25)
;
// setup key
server.SetKey(ScanHexString("aabbccddeeff00112233445566778899"));
// setup cypher
server.SetCypher(new Snow2);
server.Run();
}