25 |
#endif /* defined(SERVER_SUPPORT) || defined(CLIENT_SUPPORT) */ |
#endif /* defined(SERVER_SUPPORT) || defined(CLIENT_SUPPORT) */ |
26 |
|
|
27 |
#if defined (HAVE_GSSAPI) && defined (SERVER_SUPPORT) |
#if defined (HAVE_GSSAPI) && defined (SERVER_SUPPORT) |
28 |
|
# include "canon-host.h" |
29 |
# include "gssapi-client.h" |
# include "gssapi-client.h" |
30 |
|
|
31 |
/* This stuff isn't included solely with SERVER_SUPPORT since some of these |
/* This stuff isn't included solely with SERVER_SUPPORT since some of these |
7343 |
|
|
7344 |
|
|
7345 |
|
|
7346 |
#ifdef HAVE_GSSAPI |
# ifdef HAVE_GSSAPI /* && SERVER_SUPPORT */ |
|
char *canon_host (const char *host); |
|
|
|
|
7347 |
/* Authenticate a GSSAPI connection. This is called from |
/* Authenticate a GSSAPI connection. This is called from |
7348 |
* pserver_authenticate_connection, and it handles success and failure |
* pserver_authenticate_connection, and it handles success and failure |
7349 |
* the same way. |
* the same way. |
7368 |
|
|
7369 |
hn = canon_host (server_hostname); |
hn = canon_host (server_hostname); |
7370 |
if (!hn) |
if (!hn) |
7371 |
error (1, 0, "can't get canonical hostname for `%s'", |
error (1, 0, "can't get canonical hostname for `%s': %s", |
7372 |
server_hostname); |
server_hostname, ch_strerror ()); |
7373 |
|
|
7374 |
sprintf (buf, "cvs@%s", hn); |
sprintf (buf, "cvs@%s", hn); |
7375 |
free (hn); |
free (hn); |
7470 |
fflush (stdout); |
fflush (stdout); |
7471 |
} |
} |
7472 |
|
|
7473 |
#endif /* HAVE_GSSAPI */ |
# endif /* HAVE_GSSAPI */ |
7474 |
|
|
7475 |
#endif /* SERVER_SUPPORT */ |
#endif /* SERVER_SUPPORT */ |
7476 |
|
|