Lines Matching refs:GLOBAL

84 #  ifdef GLOBAL         /* used in Amiga system headers, maybe others too */
85 # undef GLOBAL
87 # define GLOBAL(g) g
89 # define GLOBAL(g) G.g
129 temp = ((unsigned)GLOBAL(keys[2]) & 0xffff) | 2;
140 GLOBAL(keys[0]) = CRC32(GLOBAL(keys[0]), c);
141 GLOBAL(keys[1]) += GLOBAL(keys[0]) & 0xff;
142 GLOBAL(keys[1]) = GLOBAL(keys[1]) * 134775813L + 1;
144 register int keyshift = (int)(GLOBAL(keys[1]) >> 24);
145 GLOBAL(keys[2]) = CRC32(GLOBAL(keys[2]), keyshift);
159 GLOBAL(keys[0]) = 305419896L;
160 GLOBAL(keys[1]) = 591751049L;
161 GLOBAL(keys[2]) = 878082192L;
394 Trace((stdout, "\n[incnt = %d]: ", GLOBAL(incnt)));
398 GLOBAL(pInfo->encrypted) = FALSE;
406 GLOBAL(pInfo->encrypted) = TRUE;
408 if (GLOBAL(newzip)) { /* this is first encrypted member in this zipfile */
409 GLOBAL(newzip) = FALSE;
411 if (!GLOBAL(key)) {
412 if ((GLOBAL(key) = (char *)malloc(strlen(passwrd)+1)) ==
415 strcpy(GLOBAL(key), passwrd);
416 GLOBAL(nopwd) = TRUE; /* inhibit password prompting! */
418 } else if (GLOBAL(key)) { /* get rid of previous zipfile's key */
419 free(GLOBAL(key));
420 GLOBAL(key) = (char *)NULL;
425 if (GLOBAL(key)) {
428 else if (GLOBAL(nopwd))
430 } else if ((GLOBAL(key) = (char *)malloc(IZ_PWLEN+1)) == (char *)NULL)
436 r = (*G.decr_passwd)((zvoid *)&G, &n, GLOBAL(key), IZ_PWLEN+1,
437 GLOBAL(zipfn), GLOBAL(filename));
439 free (GLOBAL(key));
440 GLOBAL(key) = NULL;
444 *GLOBAL(key) = '\0'; /* We try the NIL password, ... */
450 GLOBAL(nopwd) = TRUE; /* inhibit any further PW prompt! */
475 if ((key_translated = malloc(strlen(GLOBAL(key)) + 1)) == (char *)NULL)
478 r = testkey(__G__ h, STR_TO_CP1(key_translated, GLOBAL(key)));
481 r = testkey(__G__ h, GLOBAL(key));
488 if ((key_translated = malloc(strlen(GLOBAL(key)) + 1)) == (char *)NULL)
492 r = testkey(__G__ h, STR_TO_CP2(key_translated, GLOBAL(key)));
496 r = testkey(__G__ h, STR_TO_CP3(key_translated, GLOBAL(key)));
508 r = testkey(__G__ h, GLOBAL(key));
542 GLOBAL(lrec.crc32), GLOBAL(pInfo->crc),
543 GLOBAL(pInfo->ExtLocHdr) ? "true":"false"));
545 GLOBAL(incnt),
546 GLOBAL(cur_zipfile_bufstart)+(GLOBAL(inptr)-GLOBAL(inbuf))));
554 (ush)(c | (b<<8)), (ush)(GLOBAL(lrec.crc32) >> 16),
555 ((ush)GLOBAL(lrec.last_mod_dos_datetime) & 0xffff))));
556 if ((ush)(c | (b<<8)) != (GLOBAL(pInfo->ExtLocHdr) ?
557 ((ush)GLOBAL(lrec.last_mod_dos_datetime) & 0xffff) :
558 (ush)(GLOBAL(lrec.crc32) >> 16)))
563 b, (ush)(GLOBAL(lrec.crc32) >> 24),
564 ((ush)GLOBAL(lrec.last_mod_dos_datetime) >> 8) & 0xff));
565 if (b != (GLOBAL(pInfo->ExtLocHdr) ?
566 ((ush)GLOBAL(lrec.last_mod_dos_datetime) >> 8) & 0xff :
567 (ush)(GLOBAL(lrec.crc32) >> 24)))
571 for (n = (long)GLOBAL(incnt) > GLOBAL(csize) ?
572 (int)GLOBAL(csize) : GLOBAL(incnt),
573 p = GLOBAL(inptr); n--; p++)