blob: ce3a6523f1d479115ca62596fa496d652f7001f0 (
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
49
|
/*
* 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"
#define DEFINE_SOCKADDR /* For struct hostent, <netdb.h>, etc */
#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;
|