156a424ccSmp /*
256a424ccSmp  * kadmin/passwd/kpasswd.h
356a424ccSmp  *
456a424ccSmp  * Copyright 2001 by the Massachusetts Institute of Technology.
556a424ccSmp  * All Rights Reserved.
656a424ccSmp  *
756a424ccSmp  * Export of this software from the United States of America may
856a424ccSmp  *   require a specific license from the United States Government.
956a424ccSmp  *   It is the responsibility of any person or organization contemplating
1056a424ccSmp  *   export to obtain such a license before exporting.
11*2a8bcb4eSToomas Soome  *
1256a424ccSmp  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
1356a424ccSmp  * distribute this software and its documentation for any purpose and
1456a424ccSmp  * without fee is hereby granted, provided that the above copyright
1556a424ccSmp  * notice appear in all copies and that both that copyright notice and
1656a424ccSmp  * this permission notice appear in supporting documentation, and that
1756a424ccSmp  * the name of M.I.T. not be used in advertising or publicity pertaining
1856a424ccSmp  * to distribution of the software without specific, written prior
1956a424ccSmp  * permission.  Furthermore if you modify this software you must label
2056a424ccSmp  * your software as modified software and not distribute it in such a
2156a424ccSmp  * fashion that it might be confused with the original M.I.T. software.
2256a424ccSmp  * M.I.T. makes no representations about the suitability of
2356a424ccSmp  * this software for any purpose.  It is provided "as is" without express
2456a424ccSmp  * or implied warranty.
25*2a8bcb4eSToomas Soome  *
2656a424ccSmp  *
2756a424ccSmp  * Prototypes for the kpasswd program callback functions.
2856a424ccSmp  */
2956a424ccSmp 
3056a424ccSmp #ifndef __KPASSWD_H__
3156a424ccSmp #define __KPASSWD_H__
3256a424ccSmp 
3356a424ccSmp int kpasswd(krb5_context context, int argc, char *argv[]);
3456a424ccSmp 
35*2a8bcb4eSToomas Soome long read_old_password(krb5_context context, char *password,
3656a424ccSmp 		       unsigned int *pwsize);
3756a424ccSmp 
38*2a8bcb4eSToomas Soome long read_new_password(void *server_handle, char *password,
39*2a8bcb4eSToomas Soome 		       unsigned int *pwsize, char *msg_ret,
4056a424ccSmp 		       int msg_len, krb5_principal princ);
4156a424ccSmp 
4256a424ccSmp void display_intro_message(const char *fmt_string, const char *arg_string);
4356a424ccSmp 
4456a424ccSmp #endif /* __KPASSWD_H__ */
4556a424ccSmp 
4656a424ccSmp 
47