summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp/ftp/secure.h
blob: 011d745f68ce321d6f9fd3b07d2db4375e8f4653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

#define CRED_DECL	extern CREDENTIALS cred;
#define SESSION		&cred.session
#define myaddr		data_addr
#define hisaddr		hisdataaddr

int secure_flush (int);
int secure_putc (int, FILE *);
int secure_getc (FILE *);
int secure_write (int, unsigned char *, unsigned int);
int secure_read (int, char *, unsigned int);
void secure_gss_error (OM_uint32 maj_stat, OM_uint32 min_stat, char *s);

void secure_error(char *, ...)
#if !defined(__cplusplus) && (__GNUC__ > 2)
    __attribute__((__format__(__printf__, 1, 2)))
#endif
    ;