From: Richard Basch Date: Thu, 20 Feb 1997 06:24:31 +0000 (+0000) Subject: f_data.c: Fixed comment X-Git-Tag: krb5-1.1-beta1~1262 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=399d21da6fec372474c3a2cdee9664f975b71f91;p=krb5.git f_data.c: Fixed comment f_unparse.c: Implements krb5_free_unparsed_name krb5_free_unparsed_name(krb5_context, char FAR *) frees the string allocated by krb5_unparse_name Makefile.in: Compile f_unparse.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9929 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/free/ChangeLog b/src/lib/krb5/free/ChangeLog index 0a4e09847..a1a4486a2 100644 --- a/src/lib/krb5/free/ChangeLog +++ b/src/lib/krb5/free/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 19 22:45:29 1997 Richard Basch + + * Makefile.in f_unparse.c: + f_unparse.c implements the new routine krb5_free_unparsed_name + Tue Feb 18 17:42:52 1997 Richard Basch * Makefile.in f_data.c: diff --git a/src/lib/krb5/free/Makefile.in b/src/lib/krb5/free/Makefile.in index 68617bd13..4e6a99afb 100644 --- a/src/lib/krb5/free/Makefile.in +++ b/src/lib/krb5/free/Makefile.in @@ -38,7 +38,8 @@ STLIBOBJS= \ f_tgt_cred.o \ f_tkt_auth.o \ f_pwd_data.o \ - f_pwd_seq.o + f_pwd_seq.o \ + f_unparse.o OBJS= \ f_addr.$(OBJEXT) \ @@ -73,7 +74,8 @@ OBJS= \ f_tgt_cred.$(OBJEXT) \ f_tkt_auth.$(OBJEXT) \ f_pwd_data.$(OBJEXT) \ - f_pwd_seq.$(OBJEXT) + f_pwd_seq.$(OBJEXT) \ + f_unparse.$(OBJEXT) SRCS= \ $(srcdir)/f_addr.c \ @@ -108,7 +110,8 @@ SRCS= \ $(srcdir)/f_tgt_cred.c \ $(srcdir)/f_tkt_auth.c \ $(srcdir)/f_pwd_data.c \ - $(srcdir)/f_pwd_seq.c + $(srcdir)/f_pwd_seq.c \ + $(srcdir)/f_unparse.c all-windows:: $(OBJFILE) diff --git a/src/lib/krb5/free/f_data.c b/src/lib/krb5/free/f_data.c index cf7970bf3..948231d64 100644 --- a/src/lib/krb5/free/f_data.c +++ b/src/lib/krb5/free/f_data.c @@ -20,7 +20,8 @@ * or implied warranty. * * - * krb5_free_address() + * krb5_free_data() + * krb5_free_data_contents() */ #include "k5-int.h" diff --git a/src/lib/krb5/free/f_unparse.c b/src/lib/krb5/free/f_unparse.c new file mode 100644 index 000000000..67fd2bc8b --- /dev/null +++ b/src/lib/krb5/free/f_unparse.c @@ -0,0 +1,36 @@ +/* + * lib/krb5/free/f_unparse.c + * + * Copyright 1997 by the Massachusetts Institute of Technology. + * + * Export of this software from the United States of America may + * require a specific license from the United States Government. + * It is the responsibility of any person or organization contemplating + * export to obtain such a license before exporting. + * + * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and + * distribute this software and its documentation for any purpose and + * without fee is hereby granted, provided that the above copyright + * notice appear in all copies and that both that copyright notice and + * this permission notice appear in supporting documentation, and that + * the name of M.I.T. not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. M.I.T. makes no representations about the suitability of + * this software for any purpose. It is provided "as is" without express + * or implied warranty. + * + * + * krb5_free_unparsed_name() + */ + +#include "k5-int.h" + +KRB5_DLLIMP void KRB5_CALLCONV +krb5_free_unparsed_name(context, val) + krb5_context context; + char FAR * val; +{ + if (val) + krb5_xfree(val); + return; +}