diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-04-28 06:19:58 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-04-28 06:19:58 +0000 |
commit | fa9d7b6082456caf8e490d50bc5d343277a2c67b (patch) | |
tree | 42fa8b593e554f30357234384779ee406d23e311 /lib/libsndio/amsg.h | |
parent | 7c46124c1f9b4e99b5ca7e36469b292d77b6663f (diff) |
Implement a new authentication method allowing aucat and midicat to
work over TCP, for instance, to expose the sound card of one machine
with other machines of the network.
The first client generates a 128-bit random number (aka the
session cookie), saves it in $HOME/.aucat_cookie and sends it to the
server. Successive clients load the cookie from $HOME/.aucat_cookie
and send it to the server but the server accepts only clients whose
cookie matches the session cookie. When all clients are gone, the
session is over, and another cookie could start a new session, and so
on.
TCP is enabled on the server with the new -L option, and on the client
side hostnames are specified with a new optional component in the
device name.
hints from damien, dlg and deraadt, tweaks from jmc
Diffstat (limited to 'lib/libsndio/amsg.h')
-rw-r--r-- | lib/libsndio/amsg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libsndio/amsg.h b/lib/libsndio/amsg.h index c37068dca0a..d6370a2628f 100644 --- a/lib/libsndio/amsg.h +++ b/lib/libsndio/amsg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amsg.h,v 1.1 2011/04/27 21:20:36 ratchov Exp $ */ +/* $OpenBSD: amsg.h,v 1.2 2011/04/28 06:19:57 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -23,7 +23,9 @@ * socket and option names */ #define AUCAT_PATH "aucat" +#define AUCAT_PORT 11025 #define MIDICAT_PATH "midicat" +#define MIDICAT_PORT 11041 #define DEFAULT_OPT "default" /* |