[kaffe] Exception in GNUSecurityParameters.decrypt when using SSL socket
Hello! I tried to create a test SSL server application with jessie-1.0.0 (in kaffe-1.1.6). I connected to this application using s_client from openssl. If I run s_client with -tls1, I get the following exception stack trace: org.metastatic.jessie.provider.MacException at org.metastatic.jessie.provider.GNUSecurityParameters.decrypt (GNUSecurityParameters.java:307) at org.metastatic.jessie.provider.RecordInput.readRecord (RecordInput.java:207) at org.metastatic.jessie.provider.RecordInput.read (RecordInput.java:109) at org.metastatic.jessie.provider.RecordInputStream.read (RecordInputStream.java:102) at org.metastatic.jessie.provider.RecordInputStream.read (RecordInputStream.java:97) at org.metastatic.jessie.provider.RecordInputStream.read (RecordInputStream.java:84) at org.metastatic.jessie.provider.SSLSocketInputStream.read (SSLSocketInputStream.java:112) at org.metastatic.jessie.provider.DigestInputStream.read (DigestInputStream.java:82) at org.metastatic.jessie.provider.Handshake$Type.read (Handshake.java:372) at org.metastatic.jessie.provider.Handshake.read (Handshake.java:117) at org.metastatic.jessie.provider.Handshake.read (Handshake.java:104) at org.metastatic.jessie.provider.SSLSocket.doServerHandshake (SSLSocket.java:2997) at org.metastatic.jessie.provider.SSLSocket.startHandshake (SSLSocket.java:523) And if I add -bugs, I get the following: java.lang.ArrayIndexOutOfBoundsException at org.metastatic.jessie.provider.GNUSecurityParameters.decrypt (GNUSecurityParameters.java:263) at org.metastatic.jessie.provider.RecordInput.readRecord (RecordInput.java:207) at org.metastatic.jessie.provider.RecordInput.read (RecordInput.java:109) at org.metastatic.jessie.provider.RecordInputStream.read (RecordInputStream.java:102) at org.metastatic.jessie.provider.RecordInputStream.read (RecordInputStream.java:97) at org.metastatic.jessie.provider.RecordInputStream.read (RecordInputStream.java:84) at org.metastatic.jessie.provider.SSLSocketInputStream.read (SSLSocketInputStream.java:112) at org.metastatic.jessie.provider.DigestInputStream.read (DigestInputStream.java:82) at org.metastatic.jessie.provider.Handshake$Type.read (Handshake.java:372) at org.metastatic.jessie.provider.Handshake.read (Handshake.java:117) at org.metastatic.jessie.provider.Handshake.read (Handshake.java:104) at org.metastatic.jessie.provider.SSLSocket.doServerHandshake (SSLSocket.java:2997) at org.metastatic.jessie.provider.SSLSocket.startHandshake (SSLSocket.java:523) I think this is a bug in Jessie, and I'd like to help debug/fix it, but I don't know where to start. Thanks, -- Nico 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] kaffe and AWT on MIPS with multiple windows
Hi all, I'm working on the porting of KAFFE on MIPS platform, with AWT and Nano-X interface. My current problem is a helloworld program with multiple frames: the problem is that all the drawing is done on the first created frame: it seems thar AWT do not keep the id of the various frame, or do not update it or something so ... (the code on Kaffe on PC works OK) Anyone already found something similar? thanks giammy Here the example code import java.awt.*; import java.awt.event.*; public class HelloWorld extends Frame { String str; public HelloWorld (String s) { str = s; } public static void main(String[] args) throws Exception { final Frame frame = new HelloWorld(Hello1); final Frame frame2 = new HelloWorld(Hello2); final Frame frame3 = new HelloWorld(Hello3); frame.setSize(400, 200); frame2.setBounds(400, 200, 400,200); frame3.setBounds(200, 400, 400,200); frame.setTitle(1); frame2.setTitle(2); frame3.setTitle(3); frame.setVisible(true); frame2.setVisible(true); frame3.setVisible(true); } public void paint(Graphics g) { System.out.println(demo: paint + this); g.drawLine(10,10,200,200); g.setFont(new Font(Dialog, Font.PLAIN, 50)); g.setColor(Color.red); //g.setBackground(Color.red); g.drawString(str, 10, 100); } } -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe