Skip to content

Commit

Permalink
Get rid of osconfig.c
Browse files Browse the repository at this point in the history
These variables were marked as internal in 1996.  Two are unused and
the other is easily replaced with the macro it is initialized from.
  • Loading branch information
greghudson committed Mar 22, 2013
1 parent ed6edd5 commit ee2044f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 53 deletions.
3 changes: 0 additions & 3 deletions src/include/k5-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ typedef UINT64_TYPE krb5_ui_8;
typedef INT64_TYPE krb5_int64;


#define DEFAULT_PWD_STRING1 "Enter password"
#define DEFAULT_PWD_STRING2 "Re-enter password for verification"

#define KRB5_KDB_MAX_LIFE (60*60*24) /* one day */
#define KRB5_KDB_MAX_RLIFE (60*60*24*7) /* one week */
#define KRB5_KDB_EXPIRATION 2145830400 /* Thu Jan 1 00:00:00 2038 UTC */
Expand Down
3 changes: 0 additions & 3 deletions src/lib/krb5/libkrb5.exports
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ krb5_crypto_us_timeofday
krb5_decode_authdata_container
krb5_decode_ticket
krb5_decrypt_tkt_part
krb5_default_pwd_prompt1
krb5_default_pwd_prompt2
krb5_deltat_to_string
krb5_encode_authdata_container
krb5_encode_kdc_rep
Expand Down Expand Up @@ -435,7 +433,6 @@ krb5_lock_file
krb5_make_authdata_kdc_issued
krb5_make_full_ipaddr
krb5_make_fulladdr
krb5_max_dgram_size
krb5_mcc_ops
krb5_merge_authdata
krb5_mk_1cred
Expand Down
3 changes: 0 additions & 3 deletions src/lib/krb5/os/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ STLIBOBJS= \
lock_file.o \
net_read.o \
net_write.o \
osconfig.o \
port2ip.o \
prompter.o \
read_msg.o \
Expand Down Expand Up @@ -92,7 +91,6 @@ OBJS= \
$(OUTPRE)lock_file.$(OBJEXT) \
$(OUTPRE)net_read.$(OBJEXT) \
$(OUTPRE)net_write.$(OBJEXT) \
$(OUTPRE)osconfig.$(OBJEXT) \
$(OUTPRE)port2ip.$(OBJEXT) \
$(OUTPRE)prompter.$(OBJEXT) \
$(OUTPRE)read_msg.$(OBJEXT) \
Expand Down Expand Up @@ -140,7 +138,6 @@ SRCS= \
$(srcdir)/lock_file.c \
$(srcdir)/net_read.c \
$(srcdir)/net_write.c \
$(srcdir)/osconfig.c \
$(srcdir)/prompter.c \
$(srcdir)/read_msg.c \
$(srcdir)/read_pwd.c \
Expand Down
1 change: 0 additions & 1 deletion src/lib/krb5/os/os-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ extern k5_mutex_t krb5int_us_time_mutex;
extern unsigned int krb5_max_skdc_timeout;
extern unsigned int krb5_skdc_timeout_shift;
extern unsigned int krb5_skdc_timeout_1;
extern unsigned int krb5_max_dgram_size;

krb5_error_code localauth_names_initvt(krb5_context context, int maj_ver,
int min_ver, krb5_plugin_vtable vtable);
Expand Down
41 changes: 0 additions & 41 deletions src/lib/krb5/os/osconfig.c

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib/krb5/os/sendto_kdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@ add_connection(struct conn_state **conns, struct addrinfo *ai,
set_conn_state_msg_length (state, message);

if (*udpbufp == NULL) {
*udpbufp = malloc(krb5_max_dgram_size);
*udpbufp = malloc(MAX_DGRAM_SIZE);
if (*udpbufp == 0)
return ENOMEM;
}
state->x.in.buf = *udpbufp;
state->x.in.bufsize = krb5_max_dgram_size;
state->x.in.bufsize = MAX_DGRAM_SIZE;
}

/* Chain the new state onto the tail of the list. */
Expand Down

0 comments on commit ee2044f

Please sign in to comment.