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;
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
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
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
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
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
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
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:
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
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
10 matches
Mail list logo