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
|
/* Copyright (C) 2014 the GSS-PROXY contributors, see COPYING for license */
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gssapi/gssapi.h>
#define STDIN_FD 0
#define STDOUT_FD 1
#define MAX_RPC_SIZE 1024*1024
#define DEBUG(name, ...) do { \
char msg[4096]; \
snprintf(msg, 4096, __VA_ARGS__); \
fprintf(stderr, "%s[%s:%d]: %s", name, __FUNCTION__, __LINE__, msg); \
fflush(stderr); \
} while(0);
int t_send_buffer(int fd, char *buf, uint32_t len);
int t_recv_buffer(int fd, char *buf, uint32_t *len);
void t_log_failure(gss_OID mech, uint32_t maj, uint32_t min);
int t_string_to_name(const char *string, gss_name_t *name);
|