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:
Assar Westerlund
1999-08-04 06:13:58 +00:00
parent bd808564e3
commit 964a7c6cba
2 changed files with 9 additions and 8 deletions

View File

@@ -63,7 +63,8 @@ proto (int sock, const char *hostname, const char *service)
GSS_C_NT_HOSTBASED_SERVICE,
&server);
if (GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat,
"Error importing name `%s@%s':\n", service, hostname);
addrlen = sizeof(local);
if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0
@@ -97,7 +98,7 @@ proto (int sock, const char *hostname, const char *service)
NULL,
NULL);
if (GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_init_sec_context");
if (output_token->length != 0)
write_token (sock, output_token);
if (GSS_ERROR(maj_stat)) {
@@ -126,7 +127,7 @@ proto (int sock, const char *hostname, const char *service)
input_token,
output_token);
if (GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_get_mic");
write_token (sock, input_token);
write_token (sock, output_token);
@@ -145,7 +146,7 @@ proto (int sock, const char *hostname, const char *service)
NULL,
output_token);
if (GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_wrap");
write_token (sock, output_token);

View File

@@ -81,7 +81,7 @@ proto (int sock, const char *service)
NULL,
NULL);
if(GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_accept_sec_context");
if (output_token->length != 0)
write_token (sock, output_token);
if (GSS_ERROR(maj_stat)) {
@@ -98,7 +98,7 @@ proto (int sock, const char *service)
&name_token,
NULL);
if (GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_display_name");
printf ("User is `%.*s'\n", (int)name_token.length,
(char *)name_token.value);
@@ -114,7 +114,7 @@ proto (int sock, const char *service)
output_token,
NULL);
if (GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_verify_mic");
printf ("gss_verify_mic: %.*s\n", (int)input_token->length,
(char *)input_token->value);
@@ -130,7 +130,7 @@ proto (int sock, const char *service)
NULL,
NULL);
if(GSS_ERROR(maj_stat))
abort ();
gss_err (1, min_stat, "gss_unwrap");
printf ("gss_unwrap: %.*s\n", (int)output_token->length,
(char *)output_token->value);