exit(-1);
}
service.value = xmalloc(strlen(service_name) + strlen(host_name) + 2);
- snprintf(service.value, strlen(service_name) + strlen(host_name) + 2,
+ snprintf((char*)service.value, strlen(service_name) + strlen(host_name) + 2,
"%s@%s", service_name, host_name);
service.length = strlen((char *) service.value);
}
exit(0);
}
- c = memchr(buf, '\n', sizeof(buf) - 1);
+ c = (char*)memchr(buf, '\n', sizeof(buf) - 1);
if (c) {
*c = '\0';
length = c - buf;
LogTime(), PROGRAM, buf + 3, (int) input_token.length);
input_token.value = xmalloc(input_token.length);
- ska_base64_decode(input_token.value, buf + 3, input_token.length);
+ ska_base64_decode((char*)input_token.value, buf + 3, input_token.length);
#if !HAVE_SPNEGO
spnegoTokenLength = output_token.length;
}
#else
- spnegoToken = output_token.value;
+ spnegoToken = (unsigned char *)output_token.value;
spnegoTokenLength = output_token.length;
#endif
- token = xmalloc(ska_base64_encode_len(spnegoTokenLength));
+ token = (char*)xmalloc(ska_base64_encode_len(spnegoTokenLength));
if (token == NULL) {
if (debug)
fprintf(stderr, "%s| %s: Not enough memory\n", LogTime(),
if (check_gss_err(major_status, minor_status, "gss_display_name()",
debug, log))
goto cleanup;
- user = xmalloc(output_token.length + 1);
+ user = (char*)xmalloc(output_token.length + 1);
if (user == NULL) {
if (debug)
fprintf(stderr, "%s| %s: Not enough memory\n", LogTime(),
/*
* Return dummy token AA. May need an extra return tag then AF
*/
- user = xmalloc(output_token.length + 1);
+ user = (char*)xmalloc(output_token.length + 1);
if (user == NULL) {
if (debug)
fprintf(stderr, "%s| %s: Not enough memory\n", LogTime(),
}
service.value = xmalloc(strlen("HTTP") + strlen(proxy) + 2);
- snprintf(service.value, strlen("HTTP") + strlen(proxy) + 2, "%s@%s", "HTTP",
- proxy);
+ snprintf((char*)service.value, strlen("HTTP") + strlen(proxy) + 2, "%s@%s", "HTTP", proxy);
service.length = strlen((char *) service.value);
major_status = gss_import_name(&minor_status, &service,
goto cleanup;
if (output_token.length) {
- token = xmalloc(ska_base64_encode_len(output_token.length));
+ token = (char*)xmalloc(ska_base64_encode_len(output_token.length));
ska_base64_encode(token, (const char *) output_token.value,
ska_base64_encode_len(output_token.length), output_token.length);
}