From: Kai Tietz Date: Fri, 24 Jul 2009 11:27:37 +0000 (+0000) Subject: natVMSecureRandomWin32.cc: New Win32 specific implementation. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=727f2e3ace527a3cfabf0be5c241983f5468664e;p=platform%2Fupstream%2Fgcc.git natVMSecureRandomWin32.cc: New Win32 specific implementation. 2009-07-24 Kai Tietz * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: New Win32 specific implementation. From-SVN: r150048 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3afbd63..477d536 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2009-07-24 Kai Tietz + + * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: New Win32 + specific implementation. + 2009-07-23 Matthias Klose * contrib/aotcompile.py.in: Use hashlib instead of md5 if available. 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 0000000..913572d --- /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; +} +