Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] Re: client/server authentication (PR#1767)
Home

[Freeciv-Dev] Re: client/server authentication (PR#1767)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: client/server authentication (PR#1767)
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 22 Mar 2003 00:53:17 -0800
Reply-to: rt@xxxxxxxxxxxxxx

here is a series of preparation patches for a barebones client/server
authentication mechanism. These patches do not give authentication; they
have almost do nothing for the client. They do clean up the server and give
a framework so that the authentication patch becomes very simple:

auth0-1b.diff: moves the connection parts of the server out of plrhand,c
               and srv_main.c into their own file connecthand.c. This is
               really nice. The patch is fairly simple to comprehend.
auth1-2a.diff: does some name changing to make things make more sense.
               a request to join a game becomes a request to login. That's
               pretty much it.
auth2-3c.diff: more name changing. a new command. merge some functions in
               connecthand.c. 

apply on top of one another. CVS remains ok for each patch.

The mechanics of joining a game, etc are pretty much unchanged. The real
differences are: 
o you can connect to a server without joining a game. 
o you cannot join a game directly as an AI player. for this, you must
  login and then execute the 'take' command. This is necessary since in the
  authentication phase, you will not be able to use any old username.
  this also means that you don't have to connect to a running game with a 
  particular username. The metaserver might need to be updated to better 
  reflect this. I haven't checked.
o allowconnect doesn't really work anymore. kinda bad. how often is this
  used on the public servers are what are the normal uses? This is going to
  get changed anyhow when true multiconnect and observation gets
  implemented (which will be right after the auth stuff goes in).

-mike

Attachment: auth0-1b.diff.gz
Description: auth0-1b.diff.gz

Attachment: auth1-2a.diff.gz
Description: auth1-2a.diff.gz

Attachment: auth2-3c.diff.gz
Description: auth2-3c.diff.gz


[Prev in Thread] Current Thread [Next in Thread]