Move epoch and cid generation into the rx core
authorBen Kaduk <kaduk@mit.edu>
Tue, 26 Mar 2013 17:41:40 +0000 (13:41 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 10 Sep 2014 19:05:32 +0000 (15:05 -0400)
commit39b165cdda941181845022c183fea1c7af7e4356
tree9a6a83f0909b7c43bd5ad867cf74be8542226d23
parent0d67b00ff9db48c5555e8ae11daff9a469c770b0
Move epoch and cid generation into the rx core

Now that we have hcrypto available everywhere, we can get real randomness
in the rx core (both uerspace and kernel), and thus can initialize the
RX epoch to a real random value when first initializing a host; there is
no need to rely on rxkad to produce randomness for this purpose.
Initialize a connection ID counter at the same time, and use that in
rx_NewConnection, also supplanting rxkad-specific logic.

The rxkad-specific logic is removed, and in particular there is no longer
a need to export rxkad_EpochWasSet to the rest of the world.
The code in afs_Daemon() to check whether the rxepoch was set can be
removed, as if the epoch is not set, rx initialization fails.

Add libafshcrypto to LIBS in the handful of places it hadn't crept already,
and likewise afshcrypto.lib in the NTMakefiles.

Change-Id: I1dd1015b29a600aaf72b6b4b36f8a17032453c97
Reviewed-on: http://gerrit.openafs.org/10841
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
21 files changed:
src/afs/afs_daemons.c
src/afsmonitor/Makefile.in
src/auth/test/NTMakefile
src/kauth/test/NTMakefile
src/rx/rx.c
src/rx/test/generator.c
src/rxdebug/Makefile.in
src/rxdebug/NTMakefile
src/rxkad/private_data.h
src/rxkad/rxkad.p.h
src/rxkad/rxkad_client.c
src/rxkad/rxkad_common.c
src/rxkad/test/NTMakefile
src/tools/dumpscan/Makefile.in
src/ubik/Makefile.in
src/ubik/NTMakefile
src/venus/Makefile.in
src/vol/Makefile.in
src/volser/Makefile.in
src/xstat/Makefile.in
src/xstat/NTMakefile