git-svn-id: svn://db.shs.com.ru/pip@655 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -394,6 +394,15 @@ PIByteArray PICrypt::passwordHash(const PIString & password, const PIByteArray &
|
||||
}
|
||||
|
||||
|
||||
PIString PICrypt::version() {
|
||||
#ifdef PIP_CRYPT
|
||||
return SODIUM_VERSION_STRING;
|
||||
#else
|
||||
return PIString();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
bool PICrypt::init() {
|
||||
#ifdef PIP_CRYPT
|
||||
static bool inited = false;
|
||||
|
||||
@@ -102,6 +102,9 @@ public:
|
||||
//! Generate password hash from "password"
|
||||
static PIByteArray passwordHash(const PIString & password, const PIByteArray & seed);
|
||||
|
||||
//! Returns libsodium version
|
||||
static PIString version();
|
||||
|
||||
|
||||
private:
|
||||
static bool init();
|
||||
|
||||
Reference in New Issue
Block a user