Commit fac61898 by Anthony Green Committed by Anthony Green

Makefile.in: Rebuilt.

	* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Add new security files.
	* java/security/NoSuchAlgorithmException.java,
	java/security/MessageDigest.java: New files.
	* include/javaprims.h: Add security namespace.

From-SVN: r26536
parent a3f2e0fc
1999-04-19 Anthony Green <green@cygnus.com>
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Add new security files.
* java/security/NoSuchAlgorithmException.java,
java/security/MessageDigest.java: New files.
* include/javaprims.h: Add security namespace.
1999-04-16 Per Bothner <bothner@cygnus.com>
* gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
......
......@@ -517,6 +517,8 @@ java/net/URLStreamHandler.java \
java/net/URLStreamHandlerFactory.java \
java/net/UnknownHostException.java \
java/net/UnknownServiceException.java \
java/security/MessageDigest.java \
java/security/NoSuchAlgorithmException.java \
java/text/BreakIterator.java \
java/text/CharacterIterator.java \
java/text/ChoiceFormat.java \
......
......@@ -175,6 +175,12 @@ extern "Java"
};
};
namespace security
{
class MessageDigest;
class NoSuchAlgorithmException;
};
namespace util
{
class BitSet;
......
// MessageDigest.java
/* Copyright (C) 1999 Cygnus Solutions
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. */
package java.security;
// FIXME: This is just a stub for a proper implementation.
public abstract class MessageDigest
{
private static final byte[] dummy = { 0 };
public static MessageDigest getInstance(String algorithm)
throws NoSuchAlgorithmException
{
Object obj;
try {
obj = Class.forName(algorithm).newInstance();
} catch (Exception e) {
throw new NoSuchAlgorithmException("algorithm "
+ algorithm
+ " not available.");
}
return (MessageDigest) obj;
}
public void update(byte input)
{
// FIXME
}
public void update(byte[] input, int offset, int len)
{
// FIXME
}
public void update(byte[] input)
{
// FIXME
}
public byte[] digest()
{
return dummy;
}
public byte[] digest(byte[] input)
{
update(input);
return digest();
}
public void reset()
{
// FIXME
}
}
/* Copyright (C) 1999 Cygnus Solutions
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. */
package java.security;
public class NoSuchAlgorithmException extends Exception
{
public NoSuchAlgorithmException()
{
super();
}
public NoSuchAlgorithmException(String msg)
{
super(msg);
}
}
......@@ -96,14 +96,10 @@ libgcj_basedir = @libgcj_basedir@
AUTOMAKE_OPTIONS = foreign dejagnu no-installinfo
# Setup the testing framework, if you have one
EXPECT = `if [ -f $(top_builddir)/../expect/expect ] ; then \
echo $(top_builddir)/../expect/expect ; \
else echo expect ; fi`
EXPECT = `if [ -f $(top_builddir)/../expect/expect ] ; then echo $(top_builddir)/../expect/expect ; else echo expect ; fi`
RUNTEST = `if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
echo $(top_srcdir)/../dejagnu/runtest ; \
else echo runtest; fi`
RUNTEST = `if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then echo $(top_srcdir)/../dejagnu/runtest ; else echo runtest; fi`
RUNTESTFLAGS = @AM_RUNTESTFLAGS@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment