diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-09-30 23:56:06 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-09-30 23:56:06 +0200 |
commit | c0183326a6447f931d4ec971963633a687e12c5e (patch) | |
tree | 93d69414784fc9f60dd9805c7480d345c05b853e /distfoldd/agent.h | |
parent | eafd6be17a1bf1e6518180ffbc401cc0eacc332f (diff) | |
download | distfold-c0183326a6447f931d4ec971963633a687e12c5e.tar.gz distfold-c0183326a6447f931d4ec971963633a687e12c5e.zip |
prevent trivial mitm attack
Diffstat (limited to 'distfoldd/agent.h')
-rw-r--r-- | distfoldd/agent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distfoldd/agent.h b/distfoldd/agent.h index 0d25077..727eb55 100644 --- a/distfoldd/agent.h +++ b/distfoldd/agent.h @@ -187,7 +187,7 @@ protected: static QByteArray hmacSha1(const QByteArray& key, const QByteArray& message); QByteArray generateChallenge(); - QByteArray generateChallengeResponse(const QByteArray& server_challenge, const QByteArray& client_challenge); + QByteArray generateChallengeResponse(const QByteArray& server_challenge, const QByteArray& client_challenge, const QSslCertificate& server_cert, const QSslCertificate& client_cert); QByteArray encodeAuthReply(AuthResult result); AuthResult decodeAuthReply(const QByteArray& ba); |