Add <unistd.h> in places where getopt(3) is used.

Noticed by:	Andrea Soster


git-svn-id: http://wanproxy.org/svn/trunk@1036 4068ffdb-0463-0410-8185-8cc71e3bd399
Generate a random cookie.


git-svn-id: http://wanproxy.org/svn/trunk@1037 4068ffdb-0463-0410-8185-8cc71e3bd399
Let users try to authenticate with us, but never succeed.


git-svn-id: http://wanproxy.org/svn/trunk@1038 4068ffdb-0463-0410-8185-8cc71e3bd399
Allow client to request session channels, then fail channel requests.


git-svn-id: http://wanproxy.org/svn/trunk@1039 4068ffdb-0463-0410-8185-8cc71e3bd399
Make some non-errors debug messages instead.


git-svn-id: http://wanproxy.org/svn/trunk@1040 4068ffdb-0463-0410-8185-8cc71e3bd399
Add support for AES-128 in CTR mode.


git-svn-id: http://wanproxy.org/svn/trunk@1041 4068ffdb-0463-0410-8185-8cc71e3bd399
Add and use helpers to append and extract words with specified-endianness.


git-svn-id: http://wanproxy.org/svn/trunk@1042 4068ffdb-0463-0410-8185-8cc71e3bd399
From ASA 15: start sketching some channel support.

git-svn-id: http://wanproxy.org/svn/trunk@1043 4068ffdb-0463-0410-8185-8cc71e3bd399
Allow setting of environment variables.

git-svn-id: http://wanproxy.org/svn/trunk@1044 4068ffdb-0463-0410-8185-8cc71e3bd399
Enforce the provision that says that only a single resource may be connected to a session channel.


git-svn-id: http://wanproxy.org/svn/trunk@1045 4068ffdb-0463-0410-8185-8cc71e3bd399
Start thinking about the shell and other subsystems.


git-svn-id: http://wanproxy.org/svn/trunk@1046 4068ffdb-0463-0410-8185-8cc71e3bd399
Make a few fields private.


git-svn-id: http://wanproxy.org/svn/trunk@1047 4068ffdb-0463-0410-8185-8cc71e3bd399
Fix build broken by backlog parameter change to listen().


git-svn-id: http://wanproxy.org/svn/trunk@1048 4068ffdb-0463-0410-8185-8cc71e3bd399
Default to TCP if no type is specified.


git-svn-id: http://wanproxy.org/svn/trunk@1049 4068ffdb-0463-0410-8185-8cc71e3bd399
Remove a word.


git-svn-id: http://wanproxy.org/svn/trunk@1050 4068ffdb-0463-0410-8185-8cc71e3bd399
Greatly-simplify the configuration system by reworking it to set
values directly in instances of each class, rather than requiring
all kinds of indirection.

The price of this is that we don't do as much checking of whether
a field has been set, and instead focus on whether its value is
sensible.


git-svn-id: http://wanproxy.org/svn/trunk@1051 4068ffdb-0463-0410-8185-8cc71e3bd399
Properly skip decoded uint32_ts.


git-svn-id: http://wanproxy.org/svn/trunk@1052 4068ffdb-0463-0410-8185-8cc71e3bd399
Basic (and slightly-confusing) byte counting stats.


git-svn-id: http://wanproxy.org/svn/trunk@1053 4068ffdb-0463-0410-8185-8cc71e3bd399
Since only Config needs to get members by value/string, track them in Config.


git-svn-id: http://wanproxy.org/svn/trunk@1054 4068ffdb-0463-0410-8185-8cc71e3bd399
Add copyrights to individual files since it seems likely that in the near future
there will be changes from other authors incorporated into the main codebase.

The years on each copyright/license were generated from the output of 'svn log'
of each file, with files from r1 being known to date to 2008, and others using
the years of their first and last revisions as-is.

NB: This breaks the tool that fixes include guards, but it should be easy enough
    to fix.


git-svn-id: http://wanproxy.org/svn/trunk@1055 4068ffdb-0463-0410-8185-8cc71e3bd399