if (send_tok.length != 0) {
if (verbose)
printf("Sending init_sec_context token (size=%d)...",
- send_tok.length);
+ (int) send_tok.length);
if (send_token(s, TOKEN_CONTEXT, &send_tok) < 0) {
(void) gss_release_buffer(&min_stat, &send_tok);
(void) gss_release_name(&min_stat, &target_name);
if ((in_buf->value = malloc(in_buf->length)) == 0) {
fprintf(stderr, "Couldn't allocate %d byte buffer for reading file\n",
- in_buf->length);
+ (int) in_buf->length);
exit(1);
}
}
if (count < in_buf->length)
fprintf(stderr, "Warning, only read in %d bytes, expected %d\n",
- count, in_buf->length);
+ count, (int) in_buf->length);
}
/*
}
printf("Mechanism %.*s supports %d names\n",
(int) oid_name.length, (char *) oid_name.value,
- mech_names->count);
+ (int) mech_names->count);
(void) gss_release_buffer(&min_stat, &oid_name);
for (i=0; i<mech_names->count; i++) {
display_status("converting oid->string", maj_stat, min_stat);
return -1;
}
- printf(" %d: %.*s\n", i,
+ printf(" %d: %.*s\n", (int) i,
(int) oid_name.length, (char *) oid_name.value);
(void) gss_release_buffer(&min_stat, &oid_name);
deleg_flag, auth_flag, wrap_flag, encrypt_flag, mic_flag,
msg, use_file, mcount) < 0)
exit(1);
+}
}
if (oid != GSS_C_NULL_OID)
if (display_file)
fprintf(display_file,
"sending token data: %d of %d bytes written\n",
- ret, tok->length);
+ ret, (int) tok->length);
return -1;
}
return -1;
} else if (ret != tok->length) {
fprintf(stderr, "sending token data: %d of %d bytes written\n",
- ret, tok->length);
+ ret, (int) tok->length);
free(tok->value);
return -1;
}
return -1;
if (verbose && log) {
- fprintf(log, "Received token (size=%d): \n", recv_tok.length);
+ fprintf(log, "Received token (size=%d): \n", (int) recv_tok.length);
print_token(&recv_tok);
}
if (verbose && log) {
fprintf(log,
"Sending accept_sec_context token (size=%d):\n",
- send_tok.length);
+ (int) send_tok.length);
print_token(&send_tok);
}
if (send_token(s, TOKEN_CONTEXT, &send_tok) < 0) {
gettimeofday(&tm2, (struct timezone *)0);
if (verbose && log)
fprintf(log, "Exported context: %d bytes, %7.4f seconds\n",
- context_token.length, timeval_subtract(&tm2, &tm1));
+ (int) context_token.length,
+ timeval_subtract(&tm2, &tm1));
copied_token.length = context_token.length;
copied_token.value = malloc(context_token.length);
if (copied_token.value == 0) {