xref: /onnv-gate/usr/src/cmd/krb5/kadmin/server/misc.h (revision 12253:f3ab3e9cfad1)
10Sstevel@tonic-gate /*
2*12253SPeter.Shoults@Sun.COM  * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
30Sstevel@tonic-gate  */
40Sstevel@tonic-gate 
50Sstevel@tonic-gate #ifndef _MISC_H
60Sstevel@tonic-gate #define	_MISC_H
70Sstevel@tonic-gate 
80Sstevel@tonic-gate 
90Sstevel@tonic-gate #ifdef	__cplusplus
100Sstevel@tonic-gate extern "C" {
110Sstevel@tonic-gate #endif
120Sstevel@tonic-gate 
130Sstevel@tonic-gate /*
140Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  *	Openvision retains the copyright to derivative works of
170Sstevel@tonic-gate  *	this source code.  Do *NOT* create a derivative of this
180Sstevel@tonic-gate  *	source code before consulting with your legal department.
190Sstevel@tonic-gate  *	Do *NOT* integrate *ANY* of this source code into another
200Sstevel@tonic-gate  *	product before consulting with your legal department.
210Sstevel@tonic-gate  *
220Sstevel@tonic-gate  *	For further information, read the top-level Openvision
230Sstevel@tonic-gate  *	copyright which is contained in the top-level MIT Kerberos
240Sstevel@tonic-gate  *	copyright.
250Sstevel@tonic-gate  *
260Sstevel@tonic-gate  * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
270Sstevel@tonic-gate  *
280Sstevel@tonic-gate  */
290Sstevel@tonic-gate 
300Sstevel@tonic-gate 
310Sstevel@tonic-gate /*
320Sstevel@tonic-gate  * Copyright 1994 OpenVision Technologies, Inc., All Rights Reserved
330Sstevel@tonic-gate  *
340Sstevel@tonic-gate  */
350Sstevel@tonic-gate 
360Sstevel@tonic-gate kadm5_ret_t
372881Smp153739 chpass_principal_wrapper_3(void *server_handle,
382881Smp153739 			   krb5_principal principal,
392881Smp153739 			   krb5_boolean keepold,
402881Smp153739 			   int n_ks_tuple,
412881Smp153739 			   krb5_key_salt_tuple *ks_tuple,
422881Smp153739 			   char *password);
430Sstevel@tonic-gate 
440Sstevel@tonic-gate kadm5_ret_t
452881Smp153739 randkey_principal_wrapper_3(void *server_handle,
462881Smp153739 			    krb5_principal principal,
472881Smp153739 			    krb5_boolean keepold,
482881Smp153739 			    int n_ks_tuple,
492881Smp153739 			    krb5_key_salt_tuple *ks_tuple,
502881Smp153739 			    krb5_keyblock **keys, int *n_keys);
510Sstevel@tonic-gate 
520Sstevel@tonic-gate kadm5_ret_t
537934SMark.Phalan@Sun.COM schpw_util_wrapper(void *server_handle, krb5_principal princ,
547934SMark.Phalan@Sun.COM 		   char *new_pw, char **ret_pw,
557934SMark.Phalan@Sun.COM 		   char *msg_ret, unsigned int msg_len);
562881Smp153739 
572881Smp153739 kadm5_ret_t kadm5_get_principal_v1(void *server_handle,
582881Smp153739 				   krb5_principal principal,
592881Smp153739 				   kadm5_principal_ent_t_v1 *ent);
600Sstevel@tonic-gate 
612881Smp153739 kadm5_ret_t kadm5_get_policy_v1(void *server_handle, kadm5_policy_t name,
622881Smp153739 				kadm5_policy_ent_t *ent);
632881Smp153739 
647934SMark.Phalan@Sun.COM 
657934SMark.Phalan@Sun.COM krb5_error_code process_chpw_request(krb5_context context,
667934SMark.Phalan@Sun.COM 				     void *server_handle,
677934SMark.Phalan@Sun.COM 				     char *realm, int s,
687934SMark.Phalan@Sun.COM 				     krb5_keytab keytab,
697934SMark.Phalan@Sun.COM 				     struct sockaddr_in *sockin,
707934SMark.Phalan@Sun.COM 				     krb5_data *req, krb5_data *rep);
717934SMark.Phalan@Sun.COM 
722881Smp153739 #ifdef SVC_GETARGS
732881Smp153739 void  kadm_1(struct svc_req *, SVCXPRT *);
742881Smp153739 #endif
750Sstevel@tonic-gate 
767934SMark.Phalan@Sun.COM void trunc_name(size_t *len, char **dots);
777934SMark.Phalan@Sun.COM 
780Sstevel@tonic-gate #ifdef	__cplusplus
790Sstevel@tonic-gate }
800Sstevel@tonic-gate #endif
810Sstevel@tonic-gate 
820Sstevel@tonic-gate #endif	/* !_MISC_H */
832881Smp153739 
84