aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb4/mac_glue.c
blob: 77d11c2ccf963030f352892617a28a76b554f7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * mac_glue.c
 *
 * Copyright 1989 by the Massachusetts Institute of Technology.
 *
 * For copying and distribution information, please see the file
 * <mit-copyright.h>.
 *
 * Macintosh ooperating system interface for Kerberos.
 */

#include "mit-copyright.h"
#include "krb.h"

/* Mac Cincludes */
#include <string.h>
#include <stddef.h>

/* FIXME!  swab should be swapping, but for initial test, don't bother.  */

void swab(char *from, char *to, int nbytes) {}

mymemset( void *s, register int c, register size_t n )
{
	// written because memset doesn't work in think C (ARGGGG!!!!!!)
	register char *j = s;
	while( n-- )
		*j++ = c;
}

int INTERFACE
krb_start_session (x)
	char *x;
{
	return KSUCCESS;
}

int INTERFACE
krb_end_session (x)
	char *x;
{
	return KSUCCESS;
}

/* FIXME:  These stubs should go away.  */
int read() {return 0;}
int write () {return 0;}
int krb_ignore_ip_address = 0;