diff options
Diffstat (limited to 'libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc')
-rwxr-xr-x | libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc new file mode 100755 index 000000000..4c7c1f520 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc @@ -0,0 +1,33 @@ +// natVMSecureRandomWin32.cc - Native part of VMSecureRandom class for Win32. + +/* Copyright (C) 2009, 2010 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +#include <config.h> + +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> +#include <string.h> +#include <errno.h> + +#include <gcj/cni.h> +#include <java/lang/InternalError.h> +#include <java/lang/UnsupportedOperationException.h> +#include <gnu/java/security/jce/prng/VMSecureRandom.h> + +jint +gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length) +{ + if (length != 0) + throw new ::java::lang::UnsupportedOperationException ( + JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target.")); + return 0; +} + |