Skip to content

Commit

Permalink
Remove keepold argument from create_principal_3, since it is rather
Browse files Browse the repository at this point in the history
useless.  Update library version numbers, xdr functions,
etc. accordingly.


git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12082 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tlyu committed Feb 27, 2000
1 parent a64cd89 commit b16befe
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 12 deletions.
10 changes: 10 additions & 0 deletions src/lib/kadm5/ChangeLog
@@ -1,3 +1,13 @@
2000-02-26 Tom Yu <tlyu@mit.edu>

* kadm_rpc_xdr.c (xdr_cprinc3_arg): Don't XDR the nonexistent
keepold flag.

* kadm_rpc.h: Remove keepold flag from cprinc3_arg.

* admin.h: Remove keepold flag from create_principal_3, which was
kinda ridiculous.

2000-02-22 Ken Raeburn <raeburn@mit.edu>

* Makefile.in (includes): Extract basename of header file to be
Expand Down
2 changes: 1 addition & 1 deletion src/lib/kadm5/admin.h
Expand Up @@ -305,7 +305,7 @@ kadm5_ret_t kadm5_create_principal(void *server_handle,
long mask, char *pass);
kadm5_ret_t kadm5_create_principal_3(void *server_handle,
kadm5_principal_ent_t ent,
long mask, krb5_boolean keepold,
long mask,
int n_ks_tuple,
krb5_key_salt_tuple *ks_tuple,
char *pass);
Expand Down
8 changes: 8 additions & 0 deletions src/lib/kadm5/clnt/ChangeLog
@@ -1,3 +1,11 @@
2000-02-26 Tom Yu <tlyu@mit.edu>

* client_principal.c (kadm5_create_principal_3): Remove keepold
argument.

* Makefile.in (LIBMAJOR): Bump major number due to call signature
changes.

2000-02-13 Tom Yu <tlyu@mit.edu>

* client_rpc.c: Add new client stubs.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/kadm5/clnt/Makefile.in
Expand Up @@ -5,7 +5,7 @@ BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
LOCALINCLUDES = -I$(BUILDTOP)/include/kadm5

LIB=kadm5clnt
LIBMAJOR=3
LIBMAJOR=4
LIBMINOR=0
STOBJLISTS=../OBJS.ST OBJS.ST
SHLIB_EXPDEPS=\
Expand Down
3 changes: 1 addition & 2 deletions src/lib/kadm5/clnt/client_principal.c
Expand Up @@ -74,7 +74,7 @@ kadm5_create_principal(void *server_handle,
kadm5_ret_t
kadm5_create_principal_3(void *server_handle,
kadm5_principal_ent_t princ, long mask,
krb5_boolean keepold, int n_ks_tuple,
int n_ks_tuple,
krb5_key_salt_tuple *ks_tuple,
char *pw)
{
Expand All @@ -88,7 +88,6 @@ kadm5_create_principal_3(void *server_handle,
arg.mask = mask;
arg.passwd = pw;
arg.api_version = handle->api_version;
arg.keepold = keepold;
arg.n_ks_tuple = n_ks_tuple;
arg.ks_tuple = ks_tuple;

Expand Down
1 change: 0 additions & 1 deletion src/lib/kadm5/kadm_rpc.h
Expand Up @@ -16,7 +16,6 @@ struct cprinc3_arg {
krb5_ui_4 api_version;
kadm5_principal_ent_rec rec;
long mask;
krb5_boolean keepold;
int n_ks_tuple;
krb5_key_salt_tuple *ks_tuple;
char *passwd;
Expand Down
3 changes: 0 additions & 3 deletions src/lib/kadm5/kadm_rpc_xdr.c
Expand Up @@ -498,9 +498,6 @@ xdr_cprinc3_arg(XDR *xdrs, cprinc3_arg *objp)
if (!xdr_long(xdrs, &objp->mask)) {
return (FALSE);
}
if (!xdr_bool(xdrs, &objp->keepold)) {
return (FALSE);
}
if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple,
(unsigned int *)&objp->n_ks_tuple, ~0,
sizeof(krb5_key_salt_tuple),
Expand Down
8 changes: 8 additions & 0 deletions src/lib/kadm5/srv/ChangeLog
@@ -1,3 +1,11 @@
2000-02-26 Tom Yu <tlyu@mit.edu>

* svr_principal.c (kadm5_create_principal_3): Remove keepold
argument.

* Makefile.in (LIBMAJOR): Bump major number due to call signature
changes.

2000-02-25 Ken Raeburn <raeburn@mit.edu>

* server_acl.c (acl_get_line): Patch from Matt Crawford to permit
Expand Down
2 changes: 1 addition & 1 deletion src/lib/kadm5/srv/Makefile.in
Expand Up @@ -9,7 +9,7 @@ DEFINES = @HESIOD_DEFS@
##DOSLIBNAME = libkadm5srv.lib

LIB=kadm5srv
LIBMAJOR=3
LIBMAJOR=4
LIBMINOR=0
STOBJLISTS=../OBJS.ST OBJS.ST
SHLIB_EXPDEPS=\
Expand Down
5 changes: 2 additions & 3 deletions src/lib/kadm5/srv/svr_principal.c
Expand Up @@ -106,12 +106,11 @@ kadm5_create_principal(void *server_handle,
{
return
kadm5_create_principal_3(server_handle, entry, mask,
FALSE, 0, NULL, password);
0, NULL, password);
}
kadm5_ret_t
kadm5_create_principal_3(void *server_handle,
kadm5_principal_ent_t entry, long mask,
krb5_boolean keepold,
int n_ks_tuple, krb5_key_salt_tuple *ks_tuple,
char *password)
{
Expand Down Expand Up @@ -250,7 +249,7 @@ kadm5_create_principal_3(void *server_handle,
n_ks_tuple?n_ks_tuple:handle->params.num_keysalts,
password,
(mask & KADM5_KVNO)?entry->kvno:1,
keepold, &kdb)) {
FALSE, &kdb)) {
krb5_dbe_free_contents(handle->context, &kdb);
if (mask & KADM5_POLICY)
(void) kadm5_free_policy_ent(handle->lhandle, &polent);
Expand Down

0 comments on commit b16befe

Please sign in to comment.