#include <netdb.h>
#include <signal.h>
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 1024
-#endif
-
#include <sys/param.h>
#include <pwd.h>
#include <krb5/errors.h>
#include <krb5/kdb5_err.h>
#include <krb5/krb5_err.h>
+#include <com_err.h>
+
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024
+#endif
krb5_error_code get_first_ticket
PROTOTYPE((krb5_ccache,
struct passwd *pw;
krb5_principal client;
- krb5_principal server;
char default_name[256];
char *client_name; /* Single string representation of client id */
krb5_data requested_realm;
- char * local_realm;
char input_string[768];
krb5_error_code retval; /* return code */
int local_socket;
- int c, count;
krb5_error *err_ret;
krb5_ap_rep_enc_part *rep_ret;
char *new_password;
int new_pwsize;
- krb5_data *decodable_pwd_string;
- int i, j;
#ifdef SANDIA
extern int networked();
OLDDECLARG(krb5_principal, client)
{
char prompt[255]; /* for the password prompt */
- char verify_prompt[255]; /* Verification Prompt if Desired */
char pword[ADM_MAX_PW_LENGTH+1]; /* storage for the password */
- int pword_length = sizeof(pword);
char *old_password;
int old_pwsize;
int i;
krb5_address **my_addresses;
char *client_name;
- char local_realm[255];
krb5_error_code retval;
if ((retval = krb5_unparse_name(client, &client_name))) {
/* instance is local realm */
client->realm.data,
0))) {
- fprintf(stderr, "Error %s while building server name\n");
+ fprintf(stderr, "Error %s while building server name\n",
+ error_message(retval));
return(1);
}
krb5_pwd_data *pwd_data;
passwd_phrase_element **next_passwd_phrase_element;
char prompt[255];
- char *verify_prompt = 0;
int i, j, k;
int legit_pswd = 0; /* Assume No Legitimate Password */
char *password_list[ADM_MAX_PW_CHOICES];
{
struct servent *service_process; /* service we will talk to */
- struct hostent *local_host; /* us */
struct hostent *remote_host; /* host we will talk to */
- struct sockaddr *sockaddr_list;
char **hostlist;
* suitability of the modifications, or additions to this software for
* any purpose. It is provided "as is" without express or implied warranty.
*/
+#include <string.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#ifndef _TYPES_
#include <sys/types.h>
#ifndef _TYPES_
kadmin_endutent();
return(1);
}
- byte_copy((char *)tmpptr,(char *)&retutent,sizeof(struct utmp));
+ memcpy((char *)&retutent,(char *)tmpptr,sizeof(struct utmp));
kadmin_endutent();
#ifdef DEBUG
#ifdef NO_UT_HOST
return(1);
}
-byte_copy(str1,str2,len)
-char *str1, *str2;
-int len;
-{
- int i;
- for (i=0;i < len; i++) *(str2 + i) = *(str1 + i);
- return;
-}
-
-
#ifdef NOTKERBEROS
main(argc,argv)
int argc;