mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-30 11:24:24 -04:00
Removed some std::ostringstream.
To be continued. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
60a68210d5
commit
83bd45caa4
22 changed files with 399 additions and 755 deletions
|
@ -36,6 +36,7 @@
|
|||
#include "authgpg.h"
|
||||
#include "serialiser/rsconfigitems.h"
|
||||
#include "util/rsdir.h"
|
||||
#include "util/rsstring.h"
|
||||
|
||||
#include "retroshare/rspeers.h" // for RsPeerDetails structure
|
||||
|
||||
|
@ -48,7 +49,6 @@
|
|||
#include <openssl/rand.h>
|
||||
#include <openssl/x509.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
/****
|
||||
|
@ -380,16 +380,11 @@ bool AuthSSLimpl::SignData(const void *data, const uint32_t len, std::string &si
|
|||
EVP_MD_CTX_destroy(mdctx);
|
||||
|
||||
sign.clear();
|
||||
std::ostringstream out;
|
||||
out << std::hex;
|
||||
for(uint32_t i = 0; i < signlen; i++)
|
||||
{
|
||||
out << std::setw(2) << std::setfill('0');
|
||||
out << (uint32_t) (signature[i]);
|
||||
rs_sprintf_append(sign, "%02x", (uint32_t) (signature[i]));
|
||||
}
|
||||
|
||||
sign = out.str();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1172,9 +1167,7 @@ bool AuthSSLimpl::FailedCertificate(X509 *x509, const struct sockaddr_in &add
|
|||
|
||||
{
|
||||
// Hacky - adding IpAddress to SSLId.
|
||||
std::ostringstream out;
|
||||
out << "/" << rs_inet_ntoa(addr.sin_addr) << ":" << ntohs(addr.sin_port);
|
||||
peerId += out.str();
|
||||
rs_sprintf(peerId, "/%s:%u", rs_inet_ntoa(addr.sin_addr).c_str(), ntohs(addr.sin_port));
|
||||
}
|
||||
|
||||
uint32_t notifyType = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue