From 6ff0840db45f059949857260c3db3372fad660d5 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 23 Feb 1998 01:09:51 +0000 Subject: [PATCH] * k5-util.h: New file. Add krb5_seteuid in order to allow applications to use it without including k5-int.h. * k5-int.h: Remove krb5_seteuid, as it is moving to k5-util.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10467 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 7 +++++++ src/include/k5-int.h | 4 ---- src/include/k5-util.h | 44 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 src/include/k5-util.h diff --git a/src/include/ChangeLog b/src/include/ChangeLog index b171fcc95..043adc7c7 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,10 @@ +Sun Feb 22 19:20:31 1998 Tom Yu + + * k5-util.h: New file. Add krb5_seteuid in order to allow + applications to use it without including k5-int.h. + + * k5-int.h: Remove krb5_seteuid, as it is moving to k5-util.h. + Wed Feb 18 15:50:40 1998 Tom Yu * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/include/k5-int.h b/src/include/k5-int.h index ab30d14fd..13da7ee34 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1314,10 +1314,6 @@ KRB5_DLLIMP krb5_error_code KRB5_CALLCONV krb5_ser_unpack_bytes int krb5_seteuid KRB5_PROTOTYPE((int)); -int krb5_setenv KRB5_PROTOTYPE((const char *, const char *, int)); - -void krb5_unsetenv KRB5_PROTOTYPE((const char *)); - /* to keep lint happy */ #define krb5_xfree(val) free((char FAR *)(val)) diff --git a/src/include/k5-util.h b/src/include/k5-util.h new file mode 100644 index 000000000..643b936d2 --- /dev/null +++ b/src/include/k5-util.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 1989-1998 by the Massachusetts Institute of Technology, + * Cambridge, MA, USA. All Rights Reserved. + * + * This software is being provided to you, the LICENSEE, by the + * Massachusetts Institute of Technology (M.I.T.) under the following + * license. By obtaining, using and/or copying this software, you agree + * that you have read, understood, and will comply with these terms and + * conditions: + * + * 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 or + * royalty is hereby granted, provided that you agree to comply with the + * following copyright notice and statements, including the disclaimer, and + * that the same appear on ALL copies of the software and documentation, + * including modifications that you make for internal use or for + * distribution: + * + * THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS + * OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not + * limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF + * MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF + * THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY + * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + * + * The name of the Massachusetts Institute of Technology or M.I.T. may NOT + * be used in advertising or publicity pertaining to distribution of the + * software. Title to copyright in this software and any associated + * documentation shall at all times remain with M.I.T., and USER agrees to + * preserve same. + */ + +/* + * "internal" utility functions used by various applications. + * They live in libkrb5util. + */ + +int krb5_seteuid(int); +int krb5_setedid(int); -- 2.26.2