2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Handle improved protocol secrets.

This commit is contained in:
John Preston
2018-06-25 20:22:03 +01:00
parent 8c2f11de7d
commit 22441ef80c
6 changed files with 50 additions and 50 deletions

View File

@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/flags.h"
#include "base/algorithm.h"
#include "base/assertion.h"
#include "base/bytes.h"
#include <QtCore/QReadWriteLock>
#include <QtCore/QRegularExpression>
@@ -400,11 +401,13 @@ struct ProxyData {
bool valid() const;
bool supportsCalls() const;
bool tryCustomResolve() const;
bytes::vector secretFromMtprotoPassword() const;
explicit operator bool() const;
bool operator==(const ProxyData &other) const;
bool operator!=(const ProxyData &other) const;
static bool ValidSecret(const QString &secret);
static bool ValidMtprotoPassword(const QString &secret);
static int MaxMtprotoPasswordLength();
};