* 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:
drbob 2009-05-24 10:33:08 +00:00
parent edd13ba38a
commit 387b7bae6a
5 changed files with 59 additions and 12 deletions

View file

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