use gss_err instead of abort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6693 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -63,7 +63,8 @@ proto (int sock, const char *hostname, const char *service)
|
|||||||
GSS_C_NT_HOSTBASED_SERVICE,
|
GSS_C_NT_HOSTBASED_SERVICE,
|
||||||
&server);
|
&server);
|
||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat,
|
||||||
|
"Error importing name `%s@%s':\n", service, hostname);
|
||||||
|
|
||||||
addrlen = sizeof(local);
|
addrlen = sizeof(local);
|
||||||
if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0
|
if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0
|
||||||
@@ -97,7 +98,7 @@ proto (int sock, const char *hostname, const char *service)
|
|||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_init_sec_context");
|
||||||
if (output_token->length != 0)
|
if (output_token->length != 0)
|
||||||
write_token (sock, output_token);
|
write_token (sock, output_token);
|
||||||
if (GSS_ERROR(maj_stat)) {
|
if (GSS_ERROR(maj_stat)) {
|
||||||
@@ -126,7 +127,7 @@ proto (int sock, const char *hostname, const char *service)
|
|||||||
input_token,
|
input_token,
|
||||||
output_token);
|
output_token);
|
||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_get_mic");
|
||||||
|
|
||||||
write_token (sock, input_token);
|
write_token (sock, input_token);
|
||||||
write_token (sock, output_token);
|
write_token (sock, output_token);
|
||||||
@@ -145,7 +146,7 @@ proto (int sock, const char *hostname, const char *service)
|
|||||||
NULL,
|
NULL,
|
||||||
output_token);
|
output_token);
|
||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_wrap");
|
||||||
|
|
||||||
write_token (sock, output_token);
|
write_token (sock, output_token);
|
||||||
|
|
||||||
|
@@ -81,7 +81,7 @@ proto (int sock, const char *service)
|
|||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
if(GSS_ERROR(maj_stat))
|
if(GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_accept_sec_context");
|
||||||
if (output_token->length != 0)
|
if (output_token->length != 0)
|
||||||
write_token (sock, output_token);
|
write_token (sock, output_token);
|
||||||
if (GSS_ERROR(maj_stat)) {
|
if (GSS_ERROR(maj_stat)) {
|
||||||
@@ -98,7 +98,7 @@ proto (int sock, const char *service)
|
|||||||
&name_token,
|
&name_token,
|
||||||
NULL);
|
NULL);
|
||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_display_name");
|
||||||
|
|
||||||
printf ("User is `%.*s'\n", (int)name_token.length,
|
printf ("User is `%.*s'\n", (int)name_token.length,
|
||||||
(char *)name_token.value);
|
(char *)name_token.value);
|
||||||
@@ -114,7 +114,7 @@ proto (int sock, const char *service)
|
|||||||
output_token,
|
output_token,
|
||||||
NULL);
|
NULL);
|
||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_verify_mic");
|
||||||
|
|
||||||
printf ("gss_verify_mic: %.*s\n", (int)input_token->length,
|
printf ("gss_verify_mic: %.*s\n", (int)input_token->length,
|
||||||
(char *)input_token->value);
|
(char *)input_token->value);
|
||||||
@@ -130,7 +130,7 @@ proto (int sock, const char *service)
|
|||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
if(GSS_ERROR(maj_stat))
|
if(GSS_ERROR(maj_stat))
|
||||||
abort ();
|
gss_err (1, min_stat, "gss_unwrap");
|
||||||
|
|
||||||
printf ("gss_unwrap: %.*s\n", (int)output_token->length,
|
printf ("gss_unwrap: %.*s\n", (int)output_token->length,
|
||||||
(char *)output_token->value);
|
(char *)output_token->value);
|
||||||
|
Reference in New Issue
Block a user