mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-13 09:03:33 -04:00
* Fixed up SSL peerIds and gpg password stuff.
* PGP version compiling / running on OSX now. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1268 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
edd13ba38a
commit
387b7bae6a
5 changed files with 59 additions and 12 deletions
|
@ -1694,7 +1694,10 @@ bool getX509id(X509 *x509, std::string &xid)
|
|||
unsigned char *signdata = ASN1_STRING_data(signature);
|
||||
|
||||
std::ostringstream id;
|
||||
for(uint32_t i = 0; i < CERTSIGNLEN; i++)
|
||||
/* switched to the other end of the signature. for
|
||||
* more randomness
|
||||
*/
|
||||
for(uint32_t i = signlen - CERTSIGNLEN; i < signlen; i++)
|
||||
{
|
||||
id << std::hex << std::setw(2) << std::setfill('0')
|
||||
<< (uint16_t) (((uint8_t *) (signdata))[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue