Re: Using Unix Domain Sockets?

2005-03-30 Thread Lawrence Bowie
i do not see why not since you have to listen for a socket connection at some point with common code like the following .. sock = socket(PF_LOCAL,SOCK_STREAM,0); // or you can . sock = socket(PF_UNIX, SOCK_STREAM,0); memset(sin,0,sizeof(sin)); sin.sin_addr.s_addr=INADDR_ANY;

Re: SSL_read()

2005-03-28 Thread Lawrence Bowie
Straight from the man pages .. SSL_read() works based on the SSL/TLS records. The data are received in records (with a maximum record size of 16kB for SSLv3/TLSv1). Only when a record has been completely received, it can be processed (decryption and check of integrity). Therefore

Re: SSL_read()

2005-03-28 Thread Lawrence Bowie
Normally, you have something like ... while(1) { select() call if (SOCKET is in read mode) { do { SSL_read() call } } if (SOCKET is in write mode) { do { SSL_write() call } } } once you end first loop make sure you close

Re: Rijndael

2005-02-23 Thread Lawrence Bowie
Where do you hold your IVs for the C program? Are the Java and C programs seperate or are you using JNI? Also, I am not sure if IAIK is an actually optional Provider if you are using JCE, possibly an option using Bouncy Castle You also might try a different padding as well .. The big thing

Re: Openssl in java

2004-12-15 Thread Lawrence Bowie
Try the native implementation bundled with Sun else you will have to use some JNI methods ... http://java.sun.com/products/jsse/ LDB [EMAIL PROTECTED] wrote: Hi, I am developing server application in java and client in vc++. How to use openssl from java. Thanks in abvance S.Suresh

Re: Openssl 0.9.7f test is looking for the wrong libssl.so

2004-11-07 Thread Lawrence Bowie
I have the same problem ... ./Configure --prefix=/opt shared threads zlib-dynamic --openssldir=/opt/ssl linux-pentium [EMAIL PROTECTED]:/work/Projects/CVS/work-openssl make tests /usr/bin/perl: error while loading shared libraries: /libssl.so: cannot open shared object file: No such file or

Re: A little help please!!!

2004-09-09 Thread Lawrence Bowie
try -L/path/to/crypto/lib in front of -lcrypto LDB Marcos Paraiso wrote: I used the command -- gcc -o test test.c -lcrypto -- and the following message was prompted: C:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcrypto This is the structure of MinGW on

Re: DES-EDE3-CBC

2004-09-07 Thread Lawrence Bowie
Just type: man enc des-ede3-cbc Three key triple DES EDE in CBC mode des-ede3 Alias for des-ede3-cbc des3 Alias for des-ede3-cbc des-ede3-cfb Three key triple DES EDE CFB mode des-ede3-ofb Three key triple DES EDE in OFB mode [EMAIL PROTECTED] wrote:

Re: EOFException when connecting to ldap server with jndi

2004-06-03 Thread Lawrence Bowie
You need to post to http://forum.java.sun.com/index.jsp at the Java Secure Socket Extensions section. Also, the EOFException means your connection closed unexpectedly .. I would lose tls.close(); ctx.close(); LDB mark brophy wrote: Hi all: This is my first post, so please redirect me if I'm in

Re: OpenSSL with Java?

2004-04-28 Thread Lawrence Bowie
Yes, the JDK from http://java.sun.com supports SSL. The package is called JSSE. It integrates really well. LDB Elie Lalo wrote: Hi, I know that OpenSSL supports both windows and Unix, and it is used from C and C++ programs. My question is the following: Can we use OpenSSL from Java programs as