1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3 * Copyright 1994 by OpenVision Technologies, Inc.
4 *
5 * Permission to use, copy, modify, distribute, and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appears in all copies and
8 * that both that copyright notice and this permission notice appear in
9 * supporting documentation, and that the name of OpenVision not be used
10 * in advertising or publicity pertaining to distribution of the software
11 * without specific, written prior permission. OpenVision makes no
12 * representations about the suitability of this software for any
13 * purpose. It is provided "as is" without express or implied warranty.
14 *
15 * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
19 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 * PERFORMANCE OF THIS SOFTWARE.
22 */
23
24 #include "k5-int.h"
25 #include <stdio.h>
26 #include <string.h>
27 #include <sys/types.h>
28 #include "port-sockets.h"
29 #include "socket-utils.h"
30
31 krb5_error_code KRB5_CALLCONV
krb5_524_convert_creds(krb5_context context,krb5_creds * v5creds,struct credentials * v4creds)32 krb5_524_convert_creds(krb5_context context, krb5_creds *v5creds,
33 struct credentials *v4creds)
34 {
35 return KRB524_KRB4_DISABLED;
36 }
37
38 /* These may be needed for object-level backwards compatibility on Mac
39 OS and UNIX, but Windows should be okay. */
40 #ifndef _WIN32
41 #undef krb524_convert_creds_kdc
42 #undef krb524_init_ets
43
44 /* Declarations ahead of the definitions will suppress some gcc
45 warnings. */
46 void KRB5_CALLCONV krb524_init_ets (void);
47 krb5_error_code KRB5_CALLCONV
48 krb524_convert_creds_kdc(krb5_context context, krb5_creds *v5creds,
49 struct credentials *v4creds);
50
51 krb5_error_code KRB5_CALLCONV
krb524_convert_creds_kdc(krb5_context context,krb5_creds * v5creds,struct credentials * v4creds)52 krb524_convert_creds_kdc(krb5_context context, krb5_creds *v5creds,
53 struct credentials *v4creds)
54 {
55 return KRB524_KRB4_DISABLED;
56 }
57
krb524_init_ets(void)58 void KRB5_CALLCONV krb524_init_ets (void)
59 {
60 }
61 #endif
62