diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
| commit | 7799f52a32f592a7efe259bc3411ba52d13db797 (patch) | |
| tree | 350f6f98843363254f9afe467ae0c92d5a9d7f43 /eBones/lib/libkadm | |
| parent | 5ebc7e6281887681c3a348a5a4c902e262ccd656 (diff) | |
Notes
Diffstat (limited to 'eBones/lib/libkadm')
| -rw-r--r-- | eBones/lib/libkadm/kadm.h | 6 | ||||
| -rw-r--r-- | eBones/lib/libkadm/kadm_cli_wrap.c | 40 | ||||
| -rw-r--r-- | eBones/lib/libkadm/kadm_stream.c | 26 | ||||
| -rw-r--r-- | eBones/lib/libkadm/kadm_supp.c | 44 |
4 files changed, 58 insertions, 58 deletions
diff --git a/eBones/lib/libkadm/kadm.h b/eBones/lib/libkadm/kadm.h index 66284f4cce33..965b530077d0 100644 --- a/eBones/lib/libkadm/kadm.h +++ b/eBones/lib/libkadm/kadm.h @@ -1,7 +1,7 @@ /* - * $Source: /afs/athena.mit.edu/astaff/project/kerberos/src/include/RCS/kadm.h,v $ - * $Author: jtkohl $ - * Header: /afs/athena.mit.edu/astaff/project/kerberos/src/include/RCS/kadm.h,v 4.2 89/09/26 09:15:20 jtkohl Exp + * $Source: /home/ncvs/src/eBones/libkadm/kadm.h,v $ + * $Author: wollman $ + * Header: /afs/athena.mit.edu/astaff/project/kerberos/src/include/RCS/kadm.h,v 4.2 89/09/26 09:15:20 jtkohl Exp * * Copyright 1988 by the Massachusetts Institute of Technology. * diff --git a/eBones/lib/libkadm/kadm_cli_wrap.c b/eBones/lib/libkadm/kadm_cli_wrap.c index ca20601cd066..7e1cfa9640b3 100644 --- a/eBones/lib/libkadm/kadm_cli_wrap.c +++ b/eBones/lib/libkadm/kadm_cli_wrap.c @@ -13,11 +13,11 @@ static char rcsid_kadm_cli_wrap_c[] = "from: Id: kadm_cli_wrap.c,v 4.6 89/12/30 20:09:45 qjb Exp"; #endif static const char rcsid[] = - "$Id$"; + "$Id: kadm_cli_wrap.c,v 1.1 1995/01/20 02:02:51 wollman Exp $"; #endif lint /* - * kadm_cli_wrap.c the client side wrapping of the calls to the admin server + * kadm_cli_wrap.c the client side wrapping of the calls to the admin server */ #include <sys/types.h> @@ -26,7 +26,7 @@ static const char rcsid[] = #include <netdb.h> #include <sys/socket.h> #include <kadm.h> -#include <kadm_err.h> +#include <kadm_err.h> #include <krb_err.h> #ifndef NULL @@ -42,7 +42,7 @@ static Kadm_Client client_parm; static des_cblock sess_key; /* to be filled in by kadm_cli_keyd */ static Key_schedule sess_sched; -static +static clear_secrets() { bzero((char *)sess_key, sizeof(sess_key)); @@ -54,9 +54,9 @@ clear_secrets() * kadm_init_link * receives : name, inst, realm * - * initializes client parm, the Kadm_Client structure which holds the - * data about the connection between the server and client, the services - * used, the locations and other fun things + * initializes client parm, the Kadm_Client structure which holds the + * data about the connection between the server and client, the services + * used, the locations and other fun things */ kadm_init_link(n, i, r) char n[]; @@ -94,11 +94,11 @@ char r[]; /* * kadm_change_pw - * recieves : key + * recieves : key * * Replaces the password (i.e. des key) of the caller with that specified in * key. Returns no actual data from the master server, since this is called - * by a user + * by a user */ kadm_change_pw(newkey) des_cblock newkey; /* The DES form of the users key */ @@ -126,7 +126,7 @@ des_cblock newkey; /* The DES form of the users key */ bcopy((char *) newkey, (char *) &keytmp, 4); keytmp = htonl(keytmp); stsize += vts_long(keytmp, &send_st, stsize); - + retc = kadm_cli_send(send_st, stsize, &ret_st, &ret_sz); free((char *)send_st); if (retc == KADM_SUCCESS) { @@ -139,11 +139,11 @@ des_cblock newkey; /* The DES form of the users key */ /* * kadm_add * receives : vals - * returns : vals + * returns : vals * * Adds and entry containing values to the database returns the values of the * entry, so if you leave certain fields blank you will be able to determine - * the default values they are set to + * the default values they are set to */ kadm_add(vals) Kadm_vals *vals; @@ -176,8 +176,8 @@ Kadm_vals *vals; /* * kadm_mod * receives : KTEXT, {values, values} - * returns : CKSUM, RETCODE, {values} - * acl : su, sms (as register or dealloc) + * returns : CKSUM, RETCODE, {values} + * acl : su, sms (as register or dealloc) * * Modifies all entries corresponding to the first values so they match the * second values. returns the values for the changed entries in vals2 @@ -220,13 +220,13 @@ Kadm_vals *vals2; /* * kadm_get - * receives : KTEXT, {values, flags} + * receives : KTEXT, {values, flags} * returns : CKSUM, RETCODE, {count, values, values, values} - * acl : su + * acl : su * * gets the fields requested by flags from all entries matching values returns * this data for each matching recipient, after a count of how many such - * matches there were + * matches there were */ kadm_get(vals, fl) Kadm_vals *vals; @@ -265,7 +265,7 @@ u_char fl[4]; * kadm_cli_send * recieves : opcode, packet, packet length, serv_name, serv_inst * returns : return code from the packet build, the server, or - * something else + * something else * * It assembles a packet as follows: * 8 bytes : VERSION STRING @@ -273,11 +273,11 @@ u_char fl[4]; * : KTEXT * : OPCODE \ * : DATA > Encrypted (with make priv) - * : ...... / + * : ...... / * * If it builds the packet and it is small enough, then it attempts to open the * connection to the admin server. If the connection is succesfully open - * then it sends the data and waits for a reply. + * then it sends the data and waits for a reply. */ kadm_cli_send(st_dat, st_siz, ret_dat, ret_siz) u_char *st_dat; /* the actual data */ diff --git a/eBones/lib/libkadm/kadm_stream.c b/eBones/lib/libkadm/kadm_stream.c index c5990a0849d1..6ceb02ef75ab 100644 --- a/eBones/lib/libkadm/kadm_stream.c +++ b/eBones/lib/libkadm/kadm_stream.c @@ -13,7 +13,7 @@ static char rcsid_kadm_stream_c[] = "Header: /afs/athena.mit.edu/astaff/project/kerberos/src/lib/kadm/RCS/kadm_stream.c,v 4.2 89/09/26 09:20:48 jtkohl Exp "; #endif static const char rcsid[] = - "$Id$"; + "$Id: kadm_stream.c,v 1.1 1995/01/20 02:02:53 wollman Exp $"; #endif lint /* @@ -32,11 +32,11 @@ static const char rcsid[] = #define min(a,b) (((a) < (b)) ? (a) : (b)) -/* +/* vals_to_stream recieves : kadm_vals *, u_char * returns : a realloced and filled in u_char * - + this function creates a byte-stream representation of the kadm_vals structure */ vals_to_stream(dt_in, dt_out) @@ -64,16 +64,16 @@ u_char **dt_out; case KADM_MAXLIFE: stsize+=vts_char(dt_in->max_life, dt_out, stsize); break; - case KADM_DESKEY: - stsize+=vts_long(dt_in->key_high, dt_out, stsize); - stsize+=vts_long(dt_in->key_low, dt_out, stsize); + case KADM_DESKEY: + stsize+=vts_long(dt_in->key_high, dt_out, stsize); + stsize+=vts_long(dt_in->key_low, dt_out, stsize); break; default: break; } } return(stsize); -} +} build_field_header(cont, st) u_char *cont; /* container for fields data */ @@ -120,7 +120,7 @@ int loc; /* offset into the stream for current data */ return sizeof(u_long); } - + vts_char(dat, st, loc) u_char dat; /* the attributes field */ u_char **st; /* a base pointer to the stream */ @@ -130,12 +130,12 @@ int loc; /* offset into the stream for current data */ (*st)[loc] = (u_char) dat; return 1; } - -/* + +/* stream_to_vals recieves : u_char *, kadm_vals * returns : a kadm_vals filled in according to u_char * - + this decodes a byte stream represntation of a vals struct into kadm_vals */ stream_to_vals(dt_in, dt_out, maxlen) @@ -198,7 +198,7 @@ int maxlen; /* max length to use */ break; } return stsize; -} +} check_field_header(st, cont, maxlen) u_char *st; /* stream */ @@ -258,7 +258,7 @@ int maxlen; /* maximum length of st */ *dat = ntohl(temp); /* convert to network order */ return sizeof(u_long); } - + stv_char(st, dat, loc, maxlen) u_char *st; /* a base pointer to the stream */ u_char *dat; /* the attributes field */ diff --git a/eBones/lib/libkadm/kadm_supp.c b/eBones/lib/libkadm/kadm_supp.c index df97f17cfd45..8b1862123c12 100644 --- a/eBones/lib/libkadm/kadm_supp.c +++ b/eBones/lib/libkadm/kadm_supp.c @@ -13,7 +13,7 @@ static char rcsid_kadm_supp_c[] = "Header: /afs/athena.mit.edu/astaff/project/kerberos/src/lib/kadm/RCS/kadm_supp.c,v 4.1 89/09/26 09:21:07 jtkohl Exp "; #endif static const char rcsid[] = - "$Id$"; + "$Id: kadm_supp.c,v 1.1 1995/01/20 02:02:54 wollman Exp $"; #endif lint /* @@ -28,7 +28,7 @@ static const char rcsid[] = #include "kadm.h" #include "krb_db.h" - + /* prin_vals: recieves : a vals structure @@ -37,7 +37,7 @@ prin_vals(vals) Kadm_vals *vals; { printf("Info in Database for %s.%s:\n", vals->name, vals->instance); - printf(" Max Life: %d Exp Date: %s\n",vals->max_life, + printf(" Max Life: %d Exp Date: %s\n",vals->max_life, asctime(localtime((long *)&vals->exp_date))); printf(" Attribs: %.2x key: %u %u\n",vals->attributes, vals->key_low, vals->key_high); @@ -54,7 +54,7 @@ int s; #endif /* kadm_prin_to_vals takes a fields arguments, a Kadm_vals and a Principal, - it copies the fields in Principal specified by fields into Kadm_vals, + it copies the fields in Principal specified by fields into Kadm_vals, i.e from old to new */ kadm_prin_to_vals(fields, new, old) @@ -64,28 +64,28 @@ Principal *old; { bzero((char *)new, sizeof(*new)); if (IS_FIELD(KADM_NAME,fields)) { - (void) strncpy(new->name, old->name, ANAME_SZ); + (void) strncpy(new->name, old->name, ANAME_SZ); SET_FIELD(KADM_NAME, new->fields); } if (IS_FIELD(KADM_INST,fields)) { - (void) strncpy(new->instance, old->instance, INST_SZ); + (void) strncpy(new->instance, old->instance, INST_SZ); SET_FIELD(KADM_INST, new->fields); - } + } if (IS_FIELD(KADM_EXPDATE,fields)) { - new->exp_date = old->exp_date; + new->exp_date = old->exp_date; SET_FIELD(KADM_EXPDATE, new->fields); - } + } if (IS_FIELD(KADM_ATTR,fields)) { - new->attributes = old->attributes; + new->attributes = old->attributes; SET_FIELD(KADM_MAXLIFE, new->fields); - } + } if (IS_FIELD(KADM_MAXLIFE,fields)) { - new->max_life = old->max_life; + new->max_life = old->max_life; SET_FIELD(KADM_MAXLIFE, new->fields); - } + } if (IS_FIELD(KADM_DESKEY,fields)) { - new->key_low = old->key_low; - new->key_high = old->key_high; + new->key_low = old->key_low; + new->key_high = old->key_high; SET_FIELD(KADM_DESKEY, new->fields); } } @@ -98,17 +98,17 @@ Kadm_vals *old; bzero((char *)new, sizeof(*new)); if (IS_FIELD(KADM_NAME,fields)) - (void) strncpy(new->name, old->name, ANAME_SZ); + (void) strncpy(new->name, old->name, ANAME_SZ); if (IS_FIELD(KADM_INST,fields)) - (void) strncpy(new->instance, old->instance, INST_SZ); + (void) strncpy(new->instance, old->instance, INST_SZ); if (IS_FIELD(KADM_EXPDATE,fields)) - new->exp_date = old->exp_date; + new->exp_date = old->exp_date; if (IS_FIELD(KADM_ATTR,fields)) - new->attributes = old->attributes; + new->attributes = old->attributes; if (IS_FIELD(KADM_MAXLIFE,fields)) - new->max_life = old->max_life; + new->max_life = old->max_life; if (IS_FIELD(KADM_DESKEY,fields)) { - new->key_low = old->key_low; - new->key_high = old->key_high; + new->key_low = old->key_low; + new->key_high = old->key_high; } } |
