xca/lib/Passwd.h
Christian Hohnstaedt b622e64209 consolidate Password and Pin input dialogs
change storage type of passwords from char[] to QByteArray
Create PwDialog class and drop passWrite and passRead
Create Passwd class derived from QBytearray
move PKCS12 password input to PwDialog
2011-04-30 07:53:26 +02:00

30 lines
478 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2011 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __PASSWD_H
#define __PASSWD_H
#include <QtCore/QByteArray>
class Passwd: public QByteArray
{
public:
void cleanse();
~Passwd();
unsigned char *constUchar() const;
Passwd & operator= (const char *p)
{
return (Passwd&)QByteArray::operator=(p);
}
Passwd & operator= (const QByteArray &other)
{
return (Passwd&)QByteArray::operator=(other);
}
};
#endif