}
static int
-recv_token(int sock, void *token, size_t token_length, struct timeval *to);
+recv_token(int sock, void *token, size_t token_length, struct timeval *to)
{
ssize_t count;
fd_set fds;
break;
}
- count = read(sock, token, token_length));
+ count = read(sock, token, token_length);
if (count < 0) {
if (errno == EINTR)
continue;
{
size_t remain = length;
char *buf = token;
+ int count;
while (remain > 0) {
count = recv_token(sock, buf, remain, to);
int ret;
char *buf = NULL;
- ret = read_token(socket, &net_len, 4, to);
+ ret = read_token(sock, &net_len, 4, to);
if (ret < 0)
return ret;
len = ntohl(net_len);
if (buf == NULL)
return EDG_WLL_GSS_ERROR_ERRNO;
- ret = read_token(socket, buf, len, to);
+ ret = read_token(sock, buf, len, to);
if (ret < 0) {
free(buf);
return ret;
send_gss_token(int sock, void *token, size_t token_length, struct timeval *to)
{
#ifdef NO_GLOBUS
+ int ret;
uint32_t net_len = htonl(token_length);
ret = send_token(sock, &net_len, 4, to);
gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER;
gss_name_t server = GSS_C_NO_NAME;
gss_ctx_id_t context = GSS_C_NO_CONTEXT;
- char *servername = NULL;
+ char *servername = NULL, *princ_prefix = NULL;
int retry = _EXPIRED_ALERT_RETRY_COUNT;
maj_stat = min_stat = min_stat2 = req_flags = 0;
free(principal);
}
+#ifndef NO_GLOBUS
static int
gethostname_globus(char *name, int len)
{
return ret;
}
+#endif
static int
gethostname_sys(char *name, int len)