Mercurial > pidgin
changeset 19631:578b3c67d52c
- ssl-nss now reports a certificate's sha1sum correctly
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Tue, 04 Sep 2007 05:28:59 +0000 |
parents | 5f8fb3aa0aeb |
children | 96d8119d3fcc |
files | libpurple/plugins/ssl/ssl-nss.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-nss.c Tue Sep 04 05:14:52 2007 +0000 +++ b/libpurple/plugins/ssl/ssl-nss.c Tue Sep 04 05:28:59 2007 +0000 @@ -522,6 +522,9 @@ /* Make a hash! */ sha1sum = g_byte_array_sized_new(hashlen); + /* glib leaves the size as 0 by default */ + sha1sum->len = hashlen; + st = PK11_HashBuf(SEC_OID_SHA1, sha1sum->data, derCert->data, derCert->len);