Check-in [ce2ae07c02]
Overview
SHA1:ce2ae07c024b815fd25fb49c902807ea202ec693
Date: 2015-08-30 03:21:44
User: rkeene
Comment:Updated to use older mechanism for activating gzip support in zlib, to support zlib older than zlib 1.2.4
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2015-09-25
19:17
[976efa3ffc] Added uninstall script for CACKey on Mac OS X, to be made available for download by popular demand. (user: kvanals, tags: trunk)
2015-08-30
03:21
[ce2ae07c02] Updated to use older mechanism for activating gzip support in zlib, to support zlib older than zlib 1.2.4 (user: rkeene, tags: trunk)
2015-07-27
15:41
[79322b800c] Simplified test code for AFL and added it to the Makefile (user: rkeene, tags: trunk)
Changes

Modified cackey.c from [486977c92e] to [7fc12e8cff].

2615
2616
2617
2618
2619
2620
2621

2622











2623
2624
2625
2626
2627
2628
2629
					gzip_stream.next_in  = curr_id->certificate;
					gzip_stream.avail_in = curr_id->certificate_len;
					gzip_stream.next_out = tmpbuf;
					gzip_stream.avail_out = tmpbuflen;

					uncompress_ret = inflateInit(&gzip_stream);
					if (uncompress_ret == Z_OK) {

						uncompress_ret = inflateReset2(&gzip_stream, 31);











					}
					if (uncompress_ret == Z_OK) {
						uncompress_ret = inflate(&gzip_stream, 0);
					}
					if (uncompress_ret == Z_STREAM_END) {
						uncompress_ret = inflateEnd(&gzip_stream);
					} else {







>
|
>
>
>
>
>
>
>
>
>
>
>







2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
					gzip_stream.next_in  = curr_id->certificate;
					gzip_stream.avail_in = curr_id->certificate_len;
					gzip_stream.next_out = tmpbuf;
					gzip_stream.avail_out = tmpbuflen;

					uncompress_ret = inflateInit(&gzip_stream);
					if (uncompress_ret == Z_OK) {
						/* Try again as a gzip buffer */
						uncompress_ret = inflateEnd(&gzip_stream);
						if (uncompress_ret == Z_OK) {
							gzip_stream.zalloc = NULL;
							gzip_stream.zfree = NULL;
							gzip_stream.opaque = NULL;

							gzip_stream.next_in  = curr_id->certificate;
							gzip_stream.avail_in = curr_id->certificate_len;
							gzip_stream.next_out = tmpbuf;
							gzip_stream.avail_out = tmpbuflen;
							uncompress_ret = inflateInit2(&gzip_stream, 31);
						}
					}
					if (uncompress_ret == Z_OK) {
						uncompress_ret = inflate(&gzip_stream, 0);
					}
					if (uncompress_ret == Z_STREAM_END) {
						uncompress_ret = inflateEnd(&gzip_stream);
					} else {