From e14ee3d9c8633bcc87726cdf7436425e19b4a34d Mon Sep 17 00:00:00 2001 From: ktietz Date: Fri, 24 Jul 2009 11:27:37 +0000 Subject: 2009-07-24 Kai Tietz * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: New Win32 specific implementation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150048 138bc75d-0d04-0410-961f-82ee72b054a4 --- .../security/jce/prng/natVMSecureRandomWin32.cc | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc (limited to 'libjava/gnu/java/security') 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 00000000000..913572dad74 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc @@ -0,0 +1,32 @@ +// natVMSecureRandomWin32.cc - Native part of VMSecureRandom class for Win32. + +/* Copyright (C) 2009 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 + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +jint +gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length) +{ + if (length != 0) + throw new UnsupportedOperationException ( + JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target.")); + return 0; +} + -- cgit v1.2.3