urbackup_backend/urbackupserver/serverinterface/backups.h
2015-01-25 23:17:49 +01:00

20 lines
479 B
C++

#pragma once
#include "../../urbackupcommon/file_metadata.h"
struct SToken
{
int64 id;
std::string username;
std::string token;
};
struct STokens
{
std::string access_key;
std::vector<SToken> tokens;
};
STokens readTokens(const std::wstring& backupfolder, const std::wstring& clientname, const std::wstring& path);
bool checkFileToken( const std::vector<SToken> &backup_tokens, const std::vector<std::string> &tokens, const FileMetadata &metadata );