ktutil.c revision 56a424cca6b3f91f31bdab72a4626c48c779fe8b
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source code before consulting with your legal department.
* Do *NOT* integrate *ANY* of this source code into another
* product before consulting with your legal department.
*
* For further information, read the top-level Openvision
* copyright which is contained in the top-level MIT Kerberos
* copyright.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
*/
/*
*
* Copyright 1995, 1996 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
*
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright notice and
* this permission notice appear in supporting documentation, and that
* the name of M.I.T. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. Furthermore if you modify this software you must label
* your software as modified software and not distribute it in such a
* fashion that it might be confused with the original M.I.T. software.
* M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
* SS user interface for ktutil.
*/
#include "k5-int.h"
#include "ktutil.h"
#include <com_err.h>
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <libintl.h>
#include <locale.h>
extern ss_request_table ktutil_cmds;
int argc;
char *argv[];
{
int sci_idx;
#if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */
#endif
(void) textdomain(TEXT_DOMAIN);
if (retval) {
exit(1);
}
if (retval) {
gettext("while localizing command description messages"));
exit(1);
}
&ktutil_cmds, &retval);
if (retval) {
exit(1);
}
exit(0);
}
int argc;
char *argv[];
{
if (argc != 1) {
return;
}
if (retval)
}
int argc;
char *argv[];
{
if (argc != 2) {
return;
}
if (retval)
}
int argc;
char *argv[];
{
#ifdef KRB5_KRB4_COMPAT
if (argc != 2) {
return;
}
if (retval)
#else
#endif
}
int argc;
char *argv[];
{
if (argc != 2) {
return;
}
if (retval)
}
int argc;
char *argv[];
{
#ifdef KRB5_KRB4_COMPAT
if (argc != 2) {
return;
}
if (retval)
#else
#endif
}
int argc;
char *argv[];
{
for (i = 1; i < argc; i++) {
continue;
}
continue;
}
continue;
}
use_pass++;
continue;
}
use_key++;
continue;
}
}
return;
}
if (retval)
}
int argc;
char *argv[];
{
if (argc != 2) {
return;
}
if (retval)
}
int argc;
char *argv[];
{
int i, j;
char *pname;
for (i = 1; i < argc; i++) {
show_time++;
continue;
}
show_keys++;
continue;
}
show_enctype++;
continue;
}
return;
}
if (show_time) {
printf("---- ---- ----------------- ---------------------------------------------------\n");
} else {
printf("---- ---- ---------------------------------------------------------------------\n");
}
if (retval) {
gettext("while unparsing principal name"));
return;
}
if (show_time) {
char fmtbuf[18];
char fill;
fill = ' ';
sizeof(fmtbuf),
&fill))
}
if (show_enctype) {
static char buf[256];
if ((retval = krb5_enctype_to_string(
gettext("While converting "
"enctype to string"));
return;
}
}
if (show_keys) {
printf(" (0x");
printf(")");
}
printf("\n");
}
}