mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-13 19:19:33 +00:00
use bytearray now
svn path=/trunk/kdesupport/qca/; revision=429135
This commit is contained in:
parent
f824ceec8e
commit
10a3871258
examples
@ -72,7 +72,7 @@ int main(int argc, char** argv)
|
||||
msg.setRecipient(secMsgKey);
|
||||
|
||||
// Some plain text - we use the first comamnd line argument if provided
|
||||
QSecureArray plainText = (argc >= 2) ? argv[1] : "What do ya want for nuthin'";
|
||||
QByteArray plainText = (argc >= 2) ? argv[1] : "What do ya want for nuthin'";
|
||||
|
||||
// Now use the SecureMessage object to encrypt the plain text.
|
||||
msg.startEncrypt();
|
||||
|
@ -192,7 +192,7 @@ private slots:
|
||||
|
||||
void ssl_readyRead()
|
||||
{
|
||||
QByteArray a = ssl->read().toByteArray();
|
||||
QByteArray a = ssl->read();
|
||||
printf("%s", a.data());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user