Lines Matching defs:mode
226 EncryptEnable(char *type, char *mode)
235 if (EncryptType(type, mode))
236 return (EncryptStart(mode));
242 EncryptDisable(char *type, char *mode)
257 if ((mode == 0) || (isprefix(mode, "input") ? 1 : 0)) {
263 if ((mode == 0) || (isprefix(mode, "output"))) {
271 "%s: invalid encryption mode\n"), mode);
277 EncryptType(char *type, char *mode)
292 if ((mode == 0) || isprefix(mode, "input")) {
297 if ((mode == 0) || isprefix(mode, "output")) {
304 "%s: invalid encryption mode\n"), mode);
310 EncryptStart(char *mode)
313 if (mode) {
314 if (isprefix(mode, "input"))
316 if (isprefix(mode, "output"))
318 if (isprefix(mode, "help") || isprefix(mode, "?")) {
324 "%s: invalid encryption mode 'encrypt start ?' "
325 "for help\n"), mode);
340 (void) printf(gettext("No previous decryption mode, "
352 (void) printf(gettext("No previous encryption mode, "
358 EncryptStop(char *mode)
361 if (mode) {
362 if (isprefix(mode, "input"))
364 if (isprefix(mode, "output"))
366 if (isprefix(mode, "help") || isprefix(mode, "?")) {
372 "%s: invalid encryption mode 'encrypt stop ?' "
373 "for help\n"), mode);
417 (void) printf(gettext("Last encryption mode was %s\r\n"),
426 (void) printf(gettext("Last decryption mode was %s\r\n"),
858 * If we are already encrypting in some mode, then
860 * the old mode, mark it all as "clear text" and then
861 * switch to the new mode.