mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 14:38:32 +02:00
Minor cleanup
This commit is contained in:
parent
0e96fc5cab
commit
abe1cd1b51
3 changed files with 3 additions and 12 deletions
|
@ -442,8 +442,7 @@ void EntityServer::domainSettingsRequestFailed() {
|
|||
void EntityServer::startDynamicDomainVerification() {
|
||||
qCDebug(entities) << "Starting Dynamic Domain Verification...";
|
||||
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
QString thisDomainID = nodeList->getDomainHandler().getUUID().toString();
|
||||
QString thisPlaceName = DependencyManager::get<AddressManager>()->currentAddress().authority();
|
||||
|
||||
EntityTreePointer tree = std::static_pointer_cast<EntityTree>(_tree);
|
||||
QHash<QString, EntityItemID> localMap(tree->getEntityCertificateIDMap());
|
||||
|
@ -485,9 +484,9 @@ void EntityServer::startDynamicDomainVerification() {
|
|||
|
||||
if (networkReply->error() == QNetworkReply::NoError) {
|
||||
// ZRF FIXME!!!
|
||||
//if (jsonObject["location"].toString() != thisDomainID) {
|
||||
//if (jsonObject["place_name"].toString() != thisPlaceName) {
|
||||
if (false) {
|
||||
qCDebug(entities) << "invalid_reason not empty, deleting entity" << i.value();
|
||||
qCDebug(entities) << "Entity's cert's place name isn't the current place name; deleting entity" << i.value();
|
||||
tree->deleteEntity(i.value(), true);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -734,10 +734,6 @@ void Wallet::handleChallengeOwnershipPacket(QSharedPointer<ReceivedMessage> pack
|
|||
rsa,
|
||||
RSA_PKCS1_OAEP_PADDING);
|
||||
|
||||
long error = ERR_get_error();
|
||||
const char* error_str = ERR_error_string(error, NULL);
|
||||
qDebug() << "ZRF HERE\n\nEncrypted Text:" << encryptedText << "\nEncrypted Text ByteArray Size:" << encryptedTextByteArraySize << "\nEncrypted Text Length:" << encryptedText.length() << "\nDecrypted Text:" << decryptedText << "\nError:" << error_str;
|
||||
|
||||
RSA_free(rsa);
|
||||
|
||||
if (decryptionStatus != -1) {
|
||||
|
|
|
@ -1182,8 +1182,6 @@ QByteArray EntityTree::computeEncryptedNonce(const QString& certID, const QStrin
|
|||
QWriteLocker locker(&_certNonceMapLock);
|
||||
_certNonceMap.insert(certID, nonce);
|
||||
|
||||
qDebug() << "ZRF HERE\n\nEncrypted Text:" << encryptedText << "\nEncrypted Text Length:" << encryptedText.length();
|
||||
|
||||
return encryptedText;
|
||||
} else {
|
||||
return "";
|
||||
|
@ -1301,8 +1299,6 @@ void EntityTree::processChallengeOwnershipPacket(ReceivedMessage& message, const
|
|||
QString certID(message.read(certIDByteArraySize));
|
||||
QString decryptedText(message.read(decryptedTextByteArraySize));
|
||||
|
||||
qCDebug(entities) << "ZRF FIXME FJAOPISEJFPAOISEJFOA" << decryptedText << certID;
|
||||
|
||||
emit killChallengeOwnershipTimeoutTimer(certID);
|
||||
|
||||
if (!verifyDecryptedNonce(certID, decryptedText)) {
|
||||
|
|
Loading…
Reference in a new issue