xref: /titanic_44/usr/src/cmd/krb5/kadmin/kpasswd/kpasswd.h (revision 56a424cca6b3f91f31bdab72a4626c48c779fe8b)
1*56a424ccSmp153739 /*
2*56a424ccSmp153739  * kadmin/passwd/kpasswd.h
3*56a424ccSmp153739  *
4*56a424ccSmp153739  * Copyright 2001 by the Massachusetts Institute of Technology.
5*56a424ccSmp153739  * All Rights Reserved.
6*56a424ccSmp153739  *
7*56a424ccSmp153739  * Export of this software from the United States of America may
8*56a424ccSmp153739  *   require a specific license from the United States Government.
9*56a424ccSmp153739  *   It is the responsibility of any person or organization contemplating
10*56a424ccSmp153739  *   export to obtain such a license before exporting.
11*56a424ccSmp153739  *
12*56a424ccSmp153739  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13*56a424ccSmp153739  * distribute this software and its documentation for any purpose and
14*56a424ccSmp153739  * without fee is hereby granted, provided that the above copyright
15*56a424ccSmp153739  * notice appear in all copies and that both that copyright notice and
16*56a424ccSmp153739  * this permission notice appear in supporting documentation, and that
17*56a424ccSmp153739  * the name of M.I.T. not be used in advertising or publicity pertaining
18*56a424ccSmp153739  * to distribution of the software without specific, written prior
19*56a424ccSmp153739  * permission.  Furthermore if you modify this software you must label
20*56a424ccSmp153739  * your software as modified software and not distribute it in such a
21*56a424ccSmp153739  * fashion that it might be confused with the original M.I.T. software.
22*56a424ccSmp153739  * M.I.T. makes no representations about the suitability of
23*56a424ccSmp153739  * this software for any purpose.  It is provided "as is" without express
24*56a424ccSmp153739  * or implied warranty.
25*56a424ccSmp153739  *
26*56a424ccSmp153739  *
27*56a424ccSmp153739  * Prototypes for the kpasswd program callback functions.
28*56a424ccSmp153739  */
29*56a424ccSmp153739 
30*56a424ccSmp153739 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*56a424ccSmp153739 
32*56a424ccSmp153739 
33*56a424ccSmp153739 #ifndef __KPASSWD_H__
34*56a424ccSmp153739 #define __KPASSWD_H__
35*56a424ccSmp153739 
36*56a424ccSmp153739 int kpasswd(krb5_context context, int argc, char *argv[]);
37*56a424ccSmp153739 
38*56a424ccSmp153739 long read_old_password(krb5_context context, char *password,
39*56a424ccSmp153739 		       unsigned int *pwsize);
40*56a424ccSmp153739 
41*56a424ccSmp153739 long read_new_password(void *server_handle, char *password,
42*56a424ccSmp153739 		       unsigned int *pwsize, char *msg_ret,
43*56a424ccSmp153739 		       int msg_len, krb5_principal princ);
44*56a424ccSmp153739 
45*56a424ccSmp153739 void display_intro_message(const char *fmt_string, const char *arg_string);
46*56a424ccSmp153739 
47*56a424ccSmp153739 #endif /* __KPASSWD_H__ */
48*56a424ccSmp153739 
49*56a424ccSmp153739 
50