sample client-server code with ssl

2011-01-05 Thread Bhola Ray
Hello,

 

Can anyone provide me  with a working client-server code with SSL.  If
there is a pointer to a site from which I can download that's fine also.

Any input would be greatly appreciated. Thanks in advance,

 

Warm regards,

bhola



RE: memory.h confusion: Is it needed?

2010-12-29 Thread Bhola Ray
memory.h is in the following path: [ I am using Linux debian 2.6.26-2-686 #1
SMP Thu Nov 25 01:53:57 UTC 2010 i686 GNU/Linux ]
 /usr/src/linux-headers-2.6.26-2-686/include/linux/memory.h
So make sure your path is set properly to include the linux include files

-Original Message-
From: owner-openssl-...@openssl.org [mailto:owner-openssl-...@openssl.org]
On Behalf Of Michael Bergandi
Sent: Wednesday, December 29, 2010 2:37 PM
To: openssl-dev@openssl.org
Subject: memory.h confusion: Is it needed?

Hi all,

While porting OpenSSL v1.0.0c I got a 'no such file' error on an include of
. The error is correct. My platform has no memory.h. So, I
investigated a little further as to where and if it is needed. I only see
memory.h included in the following:

$ grep  \ . -r -C2
./crypto/asn1/bio_ndef.c-
./crypto/asn1/bio_ndef.c-#ifndef OPENSSL_SYSNAME_NETWARE
./crypto/asn1/bio_ndef.c:#include  ./crypto/asn1/bio_ndef.c-#endif
./crypto/asn1/bio_ndef.c-#include 
grep: ./crypto/cms/cms.h: Too many levels of symbolic links
--
./crypto/jpake/jpake.c-#include 
./crypto/jpake/jpake.c-#include 
./crypto/jpake/jpake.c:#include 
./crypto/jpake/jpake.c-
./crypto/jpake/jpake.c-/*
--
./crypto/pkcs7/bio_pk7.c-
./crypto/pkcs7/bio_pk7.c-#ifndef OPENSSL_SYSNAME_NETWARE
./crypto/pkcs7/bio_pk7.c:#include  ./crypto/pkcs7/bio_pk7.c-#endif
./crypto/pkcs7/bio_pk7.c-#include 
--
./crypto/seed/seed.c-#include  ./crypto/seed/seed.c-#ifdef WIN32
./crypto/seed/seed.c:#include  ./crypto/seed/seed.c-#endif
./crypto/seed/seed.c-
--
./demos/ssl/cli.cpp-
./demos/ssl/cli.cpp-#include 
./demos/ssl/cli.cpp:#include 
./demos/ssl/cli.cpp-#include 
./demos/ssl/cli.cpp-#include 
--
./demos/ssl/serv.cpp-#include  ./demos/ssl/serv.cpp-#include
 ./demos/ssl/serv.cpp:#include 
./demos/ssl/serv.cpp-#include  ./demos/ssl/serv.cpp-#include

grep: ./include/openssl/cms.h: Too many levels of symbolic links

My concern is with the actual library code, not the demo stuff. My confusion
comes from the #ifdef's around the include. In one place, it gets include
for everyone but NETWARE, in another only for WIN32, and in JPAKE (i know
this experimental code) says include it for everyone.
I looked through the source for each and I can't determine where anything
from memory.h is even being used.

Can someone else confirm whether or not memory.h is actually needed?

If so, under what system should it be included?

I can submit a patch to clean it up after we sort it out.


--
Mike
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org