Check-in [bc60cf4dca]
Overview
Comment:Updated to set the output size after decompressing a certificate
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bc60cf4dca7aceb93e98bb1f2d54ad937f6f7e5d
User & Date: rkeene on 2015-03-05 17:49:13
Other Links: manifest | tags
Context
2015-03-20
17:32
CACKey 0.7.1 check-in: 7c43a082a7 user: rkeene tags: trunk, 0.7.1
2015-03-05
17:49
Updated to set the output size after decompressing a certificate check-in: bc60cf4dca user: rkeene tags: trunk
17:40
Updated to use fewer APDUs when signing/decrypting check-in: 4f5638aabf user: rkeene tags: trunk
Changes

Modified cackey.c from [a840779390] to [65139610e9].

  2605   2605   					}
  2606   2606   					if (uncompress_ret == Z_STREAM_END) {
  2607   2607   						uncompress_ret = inflateEnd(&gzip_stream);
  2608   2608   					} else {
  2609   2609   						uncompress_ret = Z_DATA_ERROR;
  2610   2610   					}
  2611   2611   					if (uncompress_ret == Z_OK) {
         2612  +						tmpbuflen = gzip_stream.total_out;
         2613  +
  2612   2614   						CACKEY_DEBUG_PRINTBUF("Decompressed to:", tmpbuf, tmpbuflen);
  2613   2615   
  2614   2616   						free(curr_id->certificate);
  2615   2617   
  2616   2618   						curr_id->certificate = tmpbuf;
  2617   2619   						curr_id->certificate_len = tmpbuflen;
  2618   2620   					} else {