OPENAFS_LINUX_KERNEL_PACKAGING_CHECKS
OPENAFS_LINUX_KERNEL_SYSCALL_PROBE_CHECKS
OPENAFS_LINUX_KERNEL_MORE_ASSORTED_CHECKS
-
- OPENAFS_GCC_SUPPORTS_WNO_ERROR_FRAME_LARGER_THAN
fi
OPENAFS_LINUX_MISC_DEFINES
esac
AS_IF([test x$openafs_cv_gcc_supports_pipe = xyes],
[LINUX_GCC_KOPTS="$LINUX_GCC_KOPTS -pipe"])
])
-
-AC_DEFUN([OPENAFS_GCC_SUPPORTS_WNO_ERROR_FRAME_LARGER_THAN], [
- AC_CACHE_CHECK([if $CC supports -Wno-error=frame-larger-than=],
- [openafs_cv_gcc_supports_wno_error_frame_larger_than],
- [save_CFLAGS="$CFLAGS"
- CFLAGS="-Wno-error=frame-larger-than="
- AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [[]],
- [[int x;]])],
- [openafs_cv_gcc_supports_wno_error_frame_larger_than=yes],
- [openafs_cv_gcc_supports_wno_error_frame_larger_than=no])
- CFLAGS="$save_CFLAGS"
- ])
- AS_IF([test x$openafs_cv_gcc_supports_wno_error_frame_larger_than = xyes && test x"$CFLAGS_NOERROR" != x],
- dnl Only use -Wno-error=frame-larger-than= if gcc supports it, and if
- dnl CFLAGS_NOERROR is nonempty (so if --enable-checking=all is used, we
- dnl don't pass -Wno-error=frame-larger-than=)
- [CFLAGS_WNOERROR_FRAME_LARGER_THAN="-Wno-error=frame-larger-than="])
- AC_SUBST([CFLAGS_WNOERROR_FRAME_LARGER_THAN])
-])
*/
afs_kmutex_t hckernel_mutex;
+/*
+ * For these platforms, we use the fortuna RNG from heimdal (seeded from afsd
+ * userspace on startup). Otherwise, we rely on osi_readRandom() as the source
+ * of random data.
+ */
+#if defined(AFS_AIX_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SGI_ENV)
+# define USE_FORTUNA
+#endif
+
/* Called from osi_Init(); will only run once. */
void
init_hckernel_mutex(void)
void
RAND_seed(const void *indata, size_t size)
{
+#ifdef USE_FORTUNA
const RAND_METHOD *m = RAND_fortuna_method();
m->seed(indata, size);
+#endif
}
int
{
if (size == 0)
return 0;
-#if defined(AFS_AIX_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SGI_ENV)
+#ifdef USE_FORTUNA
const RAND_METHOD *m = RAND_fortuna_method();
return m->bytes(outdata, size);
#else
AFSAOBJS = \
sha256-kernel.o \
- rand-fortuna-kernel.o \
rand-timer-kernel.o \
afs_atomlist.o \
afs_lhash.o \
# init daemons call pioctl
AFSPAGOBJS = \
sha256-kernel.o \
- rand-fortuna-kernel.o \
rand-timer-kernel.o \
md5.o \
evp.o \
osi_sleep.o \
osi_timeout.o \
osi_vcache.o \
- osi_vm.o
+ osi_vm.o \
+ rand-fortuna-kernel.o
AFSNOIAUTHOBJS = \
afs_call.o \
osi_vcache.o \
osi_vm.o \
osi_vnodeops.o \
- osi_module.o
-
+ osi_module.o \
+ rand-fortuna-kernel.o
#AFS_OS_NFSOBJS = osi_vfsops_nfs.o
osi_vcache.o \
osi_vm.o \
osi_vnodeops.o \
- osi_module.o
+ osi_module.o \
+ rand-fortuna-kernel.o
#AFS_OS_NFSOBJS = \
# osi_vfsops_nfs.o
osi_vnodeops.c \
osi_module.c
+AFS_OS_OBJS = \
+ rand-fortuna-kernel.o
+
#AFS_OS_NFSOBJS = \
# osi_vfsops_nfs.o
osi_sleep.o \
osi_vcache.o \
osi_vnodeops.o \
- osi_vm.o
+ osi_vm.o \
+ rand-fortuna-kernel.o
AFS_OS_NFSOBJS = \
<ia64_hpux1123 hp_ux1123>
osi_sleep.o \
osi_vcache.o \
osi_vm.o \
- osi_vnodeops.o
+ osi_vnodeops.o \
+ rand-fortuna-kernel.o
AFS_OS_NFSOBJS = \
osi_vfsops_nfs.o
-DHAVE_CONFIG_H
CFLAGS_evp-algs.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
CFLAGS_evp-kernel.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
-CFLAGS_rand-fortuna-kernel.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto @CFLAGS_WNOERROR_FRAME_LARGER_THAN@
CFLAGS_rand-timer-kernel.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
CFLAGS_rand-kernel.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
CFLAGS_aes.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
osi_sleep.o \
osi_vcache.o \
osi_vm.o \
- osi_vnodeops.o
+ osi_vnodeops.o \
+ rand-fortuna-kernel.o
AFS_OS_NFSOBJS = \
osi_vfsops_nfs.o
osi_sleep.o \
osi_vcache.o \
osi_vm.o \
- osi_vnodeops.o
+ osi_vnodeops.o \
+ rand-fortuna-kernel.o
#AFS_OS_NFSOBJS = osi_vfsops_nfs.o
osi_sleep.o \
osi_vcache.o \
osi_vm.o \
- osi_vnodeops.o
+ osi_vnodeops.o \
+ rand-fortuna-kernel.o
AFS_OS_NFSOBJS = \
osi_vfsops_nfs.o