mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Linux: fix linker type confusion that was causing crash.
The class AdminPasswordRequestHandler was defined in several places in the same namespace and the linker was picking up one definition for constructor and the other one when calling virtual method. Now we use different named for different implementations.
This commit is contained in:
@@ -30,10 +30,10 @@
|
||||
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class AdminPasswordRequestHandler : public GetStringFunctor
|
||||
class AdminPasswordTextRequestHandler : public GetStringFunctor
|
||||
{
|
||||
public:
|
||||
AdminPasswordRequestHandler (TextUserInterface *userInterface) : UI (userInterface) { }
|
||||
AdminPasswordTextRequestHandler (TextUserInterface *userInterface) : UI (userInterface) { }
|
||||
virtual void operator() (string &passwordStr)
|
||||
{
|
||||
UI->ShowString (_("Enter your user password or administrator password: "));
|
||||
@@ -1116,7 +1116,7 @@ namespace VeraCrypt
|
||||
|
||||
shared_ptr <GetStringFunctor> TextUserInterface::GetAdminPasswordRequestHandler ()
|
||||
{
|
||||
return shared_ptr <GetStringFunctor> (new AdminPasswordRequestHandler (this));
|
||||
return shared_ptr <GetStringFunctor> (new AdminPasswordTextRequestHandler (this));
|
||||
}
|
||||
|
||||
void TextUserInterface::ImportTokenKeyfiles () const
|
||||
|
||||
Reference in New Issue
Block a user