mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:44:26 +02:00
Merge pull request #15908 from SimonWalton-HiFi/keygen-thread-logging
BUGZ-918: Verbose RSA-keypair logging
This commit is contained in:
commit
084b2edad4
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,7 @@ RSAKeypairGenerator::RSAKeypairGenerator(QObject* parent) :
|
|||
}
|
||||
|
||||
void RSAKeypairGenerator::run() {
|
||||
qCDebug(networking) << "KEYPAIR: thread started";
|
||||
generateKeypair();
|
||||
}
|
||||
|
||||
|
@ -53,6 +54,7 @@ void RSAKeypairGenerator::generateKeypair() {
|
|||
BN_free(exponent);
|
||||
return;
|
||||
}
|
||||
qCDebug(networking) << "KEYPAIR: OpenSSL generated a" << RSA_KEY_BITS << "bit RSA key-pair";
|
||||
|
||||
// we don't need the BIGNUM anymore so clean that up
|
||||
BN_free(exponent);
|
||||
|
@ -95,5 +97,6 @@ void RSAKeypairGenerator::generateKeypair() {
|
|||
OPENSSL_free(publicKeyDER);
|
||||
OPENSSL_free(privateKeyDER);
|
||||
|
||||
qCDebug(networking) << "KEYPAIR: emitting generated signal and finishing";
|
||||
emit generatedKeypair(_publicKey, _privateKey);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue