mirror of
https://github.com/chris2511/xca.git
synced 2026-09-13 18:46:25 +05:00
25 lines
343 B
C++
25 lines
343 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2012 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#include <QByteArray>
|
|
#include "Passwd.h"
|
|
|
|
void Passwd::cleanse()
|
|
{
|
|
memset(data(), 0, size());
|
|
}
|
|
|
|
Passwd::~Passwd()
|
|
{
|
|
Passwd::cleanse();
|
|
}
|
|
unsigned char *Passwd::constUchar() const
|
|
{
|
|
return (unsigned char *)(size() ? constData() : "");
|
|
}
|
|
|