Lines Matching refs:zlib_init
82 exit_zlib(z_stream *z, zlibInitState *zlib_init, CURLcode result)
85 *zlib_init = ZLIB_UNINIT;
105 return exit_zlib(z, &k->zlib_init, CURLE_OUT_OF_MEMORY);
124 return exit_zlib(z, &k->zlib_init, result);
132 return exit_zlib(z, &k->zlib_init, result);
134 return exit_zlib(z, &k->zlib_init, process_zlib_error(conn, z));
152 return exit_zlib(z, &k->zlib_init, process_zlib_error(conn, z));
161 return exit_zlib(z, &k->zlib_init, process_zlib_error(conn, z));
175 if(k->zlib_init == ZLIB_UNINIT) {
182 k->zlib_init = ZLIB_INIT;
285 if(k->zlib_init == ZLIB_UNINIT) {
295 k->zlib_init = ZLIB_INIT_GZIP; /* Transparent gzip decompress state */
302 k->zlib_init = ZLIB_INIT; /* Initial call state */
306 if(k->zlib_init == ZLIB_INIT_GZIP) {
317 return exit_zlib(z, &k->zlib_init, CURLE_FUNCTION_NOT_FOUND);
330 switch (k->zlib_init) {
332 case ZLIB_INIT:
341 k->zlib_init = ZLIB_GZIP_INFLATING; /* Inflating stream state */
355 return exit_zlib(z, &k->zlib_init, CURLE_OUT_OF_MEMORY);
358 k->zlib_init = ZLIB_GZIP_HEADER; /* Need more gzip header data state */
364 return exit_zlib(z, &k->zlib_init, process_zlib_error(conn, z));
380 return exit_zlib(z, &k->zlib_init, CURLE_OUT_OF_MEMORY);
392 k->zlib_init = ZLIB_GZIP_INFLATING; /* Inflating stream state */
402 return exit_zlib(z, &k->zlib_init, process_zlib_error(conn, z));
431 if(k->zlib_init != ZLIB_UNINIT)
432 (void) exit_zlib(z, &k->zlib_init, CURLE_OK);