mirror of git://gcc.gnu.org/git/gcc.git
natVMSecureRandomWin32.cc: New Win32 specific implementation.
2009-07-24 Kai Tietz <kai.tietz@onevision.com> * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: New Win32 specific implementation. From-SVN: r150048
This commit is contained in:
parent
bfce226c16
commit
727f2e3ace
|
@ -1,3 +1,8 @@
|
||||||
|
2009-07-24 Kai Tietz <kai.tietz@onevision.com>
|
||||||
|
|
||||||
|
* gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: New Win32
|
||||||
|
specific implementation.
|
||||||
|
|
||||||
2009-07-23 Matthias Klose <doko@ubuntu.com>
|
2009-07-23 Matthias Klose <doko@ubuntu.com>
|
||||||
|
|
||||||
* contrib/aotcompile.py.in: Use hashlib instead of md5 if available.
|
* contrib/aotcompile.py.in: Use hashlib instead of md5 if available.
|
||||||
|
|
|
@ -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 <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 <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 UnsupportedOperationException (
|
||||||
|
JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target."));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue