handle client protocol lists properly
authorAndy Green <andy.green@linaro.org>
Fri, 18 Jul 2014 22:52:39 +0000 (06:52 +0800)
committerAndy Green <andy.green@linaro.org>
Fri, 18 Jul 2014 22:52:39 +0000 (06:52 +0800)
commit7a8d86e0489cd6bd6f812cf55de447f5c695a359
treef70e918d10541225ef82f61ea2b035eff4f7f941
parent3bb0650e6a5b12d0e98c1dbb49bc66a28ba4f776
handle client protocol lists properly

We fail to deal with lists of protocols sent by the client
by picking one from the list properly.  This fixes that and
adds protocol lists to the test client for regression testing.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/server.c
test-server/test-client.c