Lines Matching defs:key
94 /* char *key = (char *)NULL; moved to globals.h */
97 local int testkey OF((__GPRO__ ZCONST uch *h, ZCONST char *key));
363 if (key != (char *)NULL) { /* key is the global password pointer */
411 if (!GLOBAL(key)) {
412 if ((GLOBAL(key) = (char *)malloc(strlen(passwrd)+1)) ==
415 strcpy(GLOBAL(key), passwrd);
418 } else if (GLOBAL(key)) { /* get rid of previous zipfile's key */
419 free(GLOBAL(key));
420 GLOBAL(key) = (char *)NULL;
424 /* if have key already, test it; else allocate memory for it */
425 if (GLOBAL(key)) {
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,
439 free (GLOBAL(key));
440 GLOBAL(key) = NULL;
444 *GLOBAL(key) = '\0'; /* We try the NIL password, ... */
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));
517 local int testkey(__G__ h, key)
520 ZCONST char *key; /* decryption password to test */
531 init_keys(__G__ key);