RE: C & C++ difference.

2005-07-01 Thread rohan shrivastava
Usman, Thanks a lot it worked :) -Rohan From: "Usman Riaz" <[EMAIL PROTECTED]> Reply-To: openssl-users@openssl.org To: openssl-users@openssl.org Subject: RE: C & C++ difference. Date: Fri, 01 Jul 2005 15:48:24 +0500 ALWAYS intialise your pointers :). TestSSL() { ctx = NULL; bio_err

Trying to build a reduced OpenSSL library on Cygwin/mingw

2005-07-01 Thread Stephen Cleary
a test, I have tried configuring with the above line and "no-idea" against the released 0.9.7g tarball, the developer 0.9.7g snapshot (openssl-r-0.9.7-stable-SNAP-20050701.tar.gz), and the developer 0.9.8 "stable" (?) snapshot (openssl-0.9.8-stable-SNAP-20050701.tar.gz)

Re: C & C++ difference.

2005-07-01 Thread Gianni Mariani
Usman Riaz wrote: ALWAYS intialise your pointers :). TestSSL() { ctx = NULL; bio_err = NULL; } A much better habbit to get into is to use the initialization syntax. TestSSL() : ctx(), bio_err() { } The advantage is that if you change your code so that ctx or bio_err is a di

RE: C & C++ difference.

2005-07-01 Thread Usman Riaz
ALWAYS intialise your pointers :). TestSSL() { ctx = NULL; bio_err = NULL; } HTH, Usman. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

Re: query

2005-07-01 Thread Bernhard Froehlich
Bernhard Froehlich wrote: The solution I found was using a .def-File. I am using the example attached, but it only contains functions I needed so far, so if you need others you'll have to add them yourself. Oh, I just see I forgot to remove references to other Libraries (CNVUT32). They shoul

Re: query

2005-07-01 Thread Bernhard Froehlich
akhil khandelwal wrote: hi friends i m beginner in openssl. while writing a code in borland C (windows platform) and openssl, i was able to compile my code but couldnot link the same.Can anybody help me? ak ** I also

query

2005-07-01 Thread akhil khandelwal
hi friends i m beginner in openssl. while writing a codeĀ  in borland C (windows platform) and openssl, i was able to compile my code but couldnot linkĀ the same.Can anybody help me? ak Free antispam, antivirus and 1GB to save all your messages Only in Yahoo! Mail: http://in.mail.yahoo.com

Re: C & C++ difference.

2005-07-01 Thread Tan Eng Ten
Hi Rohan, Why do you need "if (!bio_err)" at the start if program? rohan shrivastava wrote: Hello, I have written a program in C & C++, for testing OpenSSL. The C program works fine, whereas in C++ I receive segmentation fault error while executing SSL_CTX_use_certificate_file() function.

Re: capturing openssl output

2005-07-01 Thread Artem Harutyunyan
Hi, Most probably you are not redirecting STDERR to output file. Below example shows how to redirect both STDOUT and STDERR: openssl s_client -connect hostname.com:443 -CAfile ca-file.crt -verify 5 >outfile 2>&1 Hope this helps :-). cheers Artem. > Hi- > I'm trying to write a simple per

C & C++ difference.

2005-07-01 Thread rohan shrivastava
Hello, I have written a program in C & C++, for testing OpenSSL. The C program works fine, whereas in C++ I receive segmentation fault error while executing SSL_CTX_use_certificate_file() function. Any idea why I am getting this error? --- C Pgm Start --- #include "op

Re: capturing openssl output

2005-07-01 Thread Ben Kim
Hi, > I'm trying to write a simple perl program that will check a web >servers ssl cert (much like what a browser does). What I was hoping >to do was capture the output of "openssl s_client -connect >hostname.com:443 -CAfile ca-file.crt -verify 5", the problem is when I >pipe the output out I mi