summaryrefslogtreecommitdiffstats
path: root/src/kadmin/import/misc.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1996-09-11 20:38:17 +0000
committerTheodore Tso <tytso@mit.edu>1996-09-11 20:38:17 +0000
commitc345ae24c280496d0cb3acfa96258c7dbfeb25f2 (patch)
tree42f265a0aab4e417d6973e78a860004693260508 /src/kadmin/import/misc.c
parent5703cfe7cdaeb9e8d21a8dba5993c96a48037cf6 (diff)
downloadkrb5-c345ae24c280496d0cb3acfa96258c7dbfeb25f2.tar.gz
krb5-c345ae24c280496d0cb3acfa96258c7dbfeb25f2.tar.xz
krb5-c345ae24c280496d0cb3acfa96258c7dbfeb25f2.zip
Remove the kadmin/import and kadmin/export directories since the are
subsumed by kdb5_util. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9080 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/import/misc.c')
-rw-r--r--src/kadmin/import/misc.c95
1 files changed, 0 insertions, 95 deletions
diff --git a/src/kadmin/import/misc.c b/src/kadmin/import/misc.c
deleted file mode 100644
index bc58c7e7ff..0000000000
--- a/src/kadmin/import/misc.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
- *
- * $Header$
- *
- * $Log$
- * Revision 1.4 1996/07/22 20:26:31 marc
- * this commit includes all the changes on the OV_9510_INTEGRATION and
- * OV_MERGE branches. This includes, but is not limited to, the new openvision
- * admin system, and major changes to gssapi to add functionality, and bring
- * the implementation in line with rfc1964. before committing, the
- * code was built and tested for netbsd and solaris.
- *
- * Revision 1.3.4.1 1996/07/18 03:02:26 marc
- * merged in changes from OV_9510_BP to OV_9510_FINAL1
- *
- * Revision 1.3.2.1 1996/06/20 21:48:39 marc
- * File added to the repository on a branch
- *
- * Revision 1.3 1994/04/11 23:52:10 jik
- * Sandbox:
- *
- * Include <com_err.h> to get the declaration of error_message.
- *
- * Revision 1.3 1994/03/29 21:18:54 jik
- * Include <com_err.h> to get the declaration of error_message.
- *
- * Revision 1.2 1993/12/21 18:59:25 shanzer
- * make sure we prompt for input from /dev/tty
- *
- * Revision 1.1 1993/11/14 23:51:04 shanzer
- * Initial revision
- *
- */
-
-#if !defined(lint) && !defined(__CODECENTER__)
-static char *rcsid = "$Header$";
-#endif
-
-#include <stdio.h>
-#include <com_err.h> /* for error_message() */
-#include "import_err.h"
-
-#ifndef TRUE
-#define TRUE (1);
-#endif
-#ifndef FALSE
-#define FALSE (0);
-#endif
-
-/*
- * Function: confirm
- *
- * Purpose: ask a yes or no question you must answer
- * with a 'y|n|Y|n'
- *
- * Arguments:
- * (input) none
- * <return value> 1 if answered yes. 0 if no.
- *
- * Requires:
- * IMPORT_CONFIRM be be defined. and com_err be init.
- *
- * Effects:
- * none
- *
- * Modifies:
- * nuttin
- *
- */
-
-int
-confirm(void)
-{
- char buf[BUFSIZ]; /* can we say overkill ... */
- FILE *fp;
-
- if ((fp = fopen("/dev/tty", "r")) == NULL) {
- fprintf(stderr, error_message(IMPORT_TTY));
- return FALSE;
- }
- while(1) {
- fprintf(stderr, error_message(IMPORT_CONFIRM));
- fgets(buf, BUFSIZ, fp);
- if(buf[0] == 'y' || buf[0] == 'Y') {
- fclose(fp);
- return TRUE;
- }
- if(buf[0] == 'n' || buf[0] == 'N') {
- fclose(fp);
- return FALSE;
- }
- }
-}
-