Merge pull request from SimonWalton-HiFi/keygen-thread-logging

BUGZ-918: Verbose RSA-keypair logging
This commit is contained in:
Howard Stearns 2019-07-10 15:57:30 -07:00 committed by GitHub
commit 084b2edad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}