Better error message on wrong fingerprints.
GitOrigin-RevId: dbb859c02758fbb9e77c6c1cb6d42cb13e008c50
This commit is contained in:
parent
4894992e29
commit
87d505ca82
@ -6,6 +6,7 @@
|
|||||||
//
|
//
|
||||||
#include "td/telegram/net/PublicRsaKeyShared.h"
|
#include "td/telegram/net/PublicRsaKeyShared.h"
|
||||||
|
|
||||||
|
#include "td/utils/format.h"
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
@ -118,7 +119,7 @@ Result<std::pair<RSA, int64>> PublicRsaKeyShared::get_rsa(const vector<int64> &f
|
|||||||
return std::make_pair(rsa->clone(), fingerprint);
|
return std::make_pair(rsa->clone(), fingerprint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Status::Error("Unknown fingerprints");
|
return Status::Error(PSLICE() << "Unknown fingerprints " << format::as_array(fingerprints));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PublicRsaKeyShared::drop_keys() {
|
void PublicRsaKeyShared::drop_keys() {
|
||||||
|
Reference in New Issue
Block a user