/[cvs]/ccvs/src/server.c
ViewVC logotype

Diff of /ccvs/src/server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.443 by dprice, Tue Sep 6 00:40:51 2005 UTC revision 1.444 by dprice, Tue Sep 6 04:55:09 2005 UTC
# Line 25  int server_active = 0; Line 25  int server_active = 0;
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
# Line 7342  error 0 kerberos: %s\n", krb_get_err_tex Line 7343  error 0 kerberos: %s\n", krb_get_err_tex
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.
# Line 7369  gserver_authenticate_connection (void) Line 7368  gserver_authenticate_connection (void)
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);
# Line 7471  gserver_authenticate_connection (void) Line 7470  gserver_authenticate_connection (void)
7470      fflush (stdout);      fflush (stdout);
7471  }  }
7472    
7473  #endif /* HAVE_GSSAPI */  # endif /* HAVE_GSSAPI */
7474    
7475  #endif /* SERVER_SUPPORT */  #endif /* SERVER_SUPPORT */
7476    

Legend:
Removed from v.1.443  
changed lines
  Added in v.1.444

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26