mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Passwd::cleanse() also resets the password size db_base::flushLookup() now deletes all items and pki_base does not anymore. Drop TRACE Colorize pki_base::print() Set and inherit filename of loaded items Add print() method to pki_pkcs12 and constify its methods
25 lines
352 B
C++
25 lines
352 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());
|
|
clear();
|
|
}
|
|
|
|
Passwd::~Passwd()
|
|
{
|
|
Passwd::cleanse();
|
|
}
|
|
unsigned char *Passwd::constUchar() const
|
|
{
|
|
return (unsigned char *)(size() ? constData() : "");
|
|
}
|