Remove

2008-01-22 Thread Qadeer Baig
Remove


Re: Can OpenSSL be built as static libs?

2005-08-16 Thread Qadeer Baig
Yes, Read INSTALL.XX file available with the source.

On 8/14/05, Edward Chan [EMAIL PROTECTED] wrote:
  
 
 I was wondering if OpenSSL can be built as static libs as I don't want
 people to be able to simply replace the dll's with their own. 
 
 Thanks, 
 Ed
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


MSVC Application linked against static openssl libs is crashing

2005-06-06 Thread Qadeer Baig
Hi All,

I am facing a problem in an application (a dll) created in MSVC which
links against static libeay32.lib and ssleay32.lib. Problem is that
when I use this application and openssl function is called, app
crashes.
But when I link this application against the dlls of openssl (using
the .libs which are created when we compile openssl with ntdll.mak) it
works fine.
What I have noticed is that when I link my application into the static
openssl libraries its size is much smaller than the size of the libs.
Linker pulls only that code form openssl libs which it thinks is being
used in the application (this perhaps is called dead code striping).
But I think there are certain methods which are used by the
application (perhaps indirectly) which linker does not include in the
resulting app, this results in a crash when app is executed. Or there
is some other reason?

In GCC on MacOSX we have a linker option -all_load which includes
all the code of a static library in the application. And hence the
size of the app is greater than the size of the libs put together.

Is my above understanding correct, or something else is wrong?
Has anyone else run into this problem?
How can I use openssl static libraries in an app developed in MSVC or
CodeWarrior so that I do not need to have openssl dlls on the machine?

Great thanks in advance,

Regards,
---
Qadeer Baig
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: MSVC Application linked against static openssl libs is crashing

2005-06-06 Thread Qadeer Baig
Hi Aftab,

Thanks for the reply,

If you are referring to compiling openssl with /MT switch then, yes, I
have compiled openssl with /MT switch (thanks to Rush he had pointed
this out).
But because I need static library of openss so I used nt.mak file for
openssl compilation.

But if you mean that /MT should be used in MSVC while compiling the
app which is using openssl libraries, then I have just confirmed that
in c/c++ tab of project settings /MT is already spcified (because the
dll which I am creating is multithread).

I am using MSVC6.0

Any other idea?

Thaks and regards,

--
Qadeer Baig

On 6/6/05, Aftab Alam [EMAIL PROTECTED] wrote:
 Hi Qadeer,
 It seems that you have to use the switch /MTd (for debug) or /MT (for
 release)
 
 If you are using VS2003 you should go to code generation and set the run
 time library accordingly.
 
 Regards,
 Muhammad Aftab Alam.

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: MSVC Application linked against static openssl libs is crashing

2005-06-06 Thread Qadeer Baig
Thanks Brant Thomsen for the reply,

My application is actually a Win32 Dynamic-Library with no MFC support.

Any other idea?

Thanks and regards
--
Qadeer Baig

On 6/6/05, Brant Thomsen [EMAIL PROTECTED] wrote:
 I have had problems getting OpenSSL to link correctly if MFC is being used.
 Try switching from static to dynamic loading of the MFC libraries and see if
 that solves the problem.
 
 Brant Thomsen

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


libeay32.lib giving some link errors while using on Windows

2005-06-01 Thread Qadeer Baig
. __pctype
4. __errno
5. ___mb_cur_max
6. __isctype
7. __aulldiv
8. __aullrem
9. __allmul

Now:
Do I need to include some other libraries in which these
variables/functions are defind, if yes then which ones?

or Did I compile openssl with wrong options (I am using default
straight way of compiling openssl as laid out in INSTALL.W32)?

Any help in this regard will be highly appreciated.

Many thanks in advance.

---
Qadeer Baig.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: libeay32.lib giving some link errors while using on Windows

2005-06-01 Thread Qadeer Baig
Great thanks Rush!

This exercise did solve the problems :-)

Now I see that this problem with nt.mak has already been pointed out
by Matyas Majzik in one of his emails to this group.

Thanks and regards,

--
Qadeer Baig

On 6/1/05, Rush Manbert [EMAIL PROTECTED] wrote:
 Hi Qadeer,
 
 I just went through the exercise of building the openssl libraries for
 Win32 and for the Mac. I also built and installed libxml, libxslt, and
 xmlsec. This matters because xmlsec links against openssl.
 
 I discovered that the generated makefiles for Win32 hard code /MD into
 the compiler flags. This causes the link with your program to want the
 DLL runtime. (Note your error messages that mention dllimport.) I ran
 into all sorts of problems with the xmlsec link until I fixed this.
 
 I think that you can fix your problem if you edit ms\nt.mak after you
 run the configure. Find the line that begins with:
 CFLAG= /MD
 
 Change the /MD to something better, like /MT (multithreaded using
 LIBCMT.lib) or /ML (single threaded using LIBC.lib). Whatever you choose
 here must be the same as what you use for your program that links
 against this library.
 
 Now run the make and the install and try linking to your program.
 
 I hope this helps.
 
 - Rush
 
 __
 OpenSSL Project http://www.openssl.org
 User Support Mailing Listopenssl-users@openssl.org
 Automated List Manager   [EMAIL PROTECTED]

__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: How to link statically openssl in a dylib

2005-04-28 Thread Qadeer Baig
Hi Rush,

Your solution has been very helpful.

 (2) does the correct thing. It statically links against your version of
 libssl.a. It also acts just like it found the library because of a -lssl
 on the linker command line. (Only the functions that are required are
 pulled into your executable, NOT the entire library contents.) 

using -all_load link option pulls the entire contents of the static library.

Thanks to all who spared time to solve my problem.

--
Qadeer
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


How to link statically openssl in a dylib

2005-04-27 Thread Qadeer Baig
Hi,

I am using openssl in an application (this application actually is a
.dylib on Mac OSX).
Currently I am linking openssl calls by using -lssl -lcrypto linker
options. Since this links openssl calls dynamcally therefor I can only
use resulting application on the computers where libssl.dylib and
libcrypto.dylib are already installed.

Now what I want is that openssl is statically linked into my
application (dll, .dylib on OSX) so that libssl.dylib and
libcrypto.dylib are not required on the machines where my
application is used.
What linker options will I use?, XCode internally uses gcc (I believe).
It will be of great help if someone can give a simple make file (or a
simple xcode project).

I have following libraries available:
1. libssl.dylib
2. libcrypto.dylib
3. libssl.a
4. libcrypto.a

I think .a libraries will be used for static linking but how(?) so
that the resulting application is a still a .dylib.

Any help will be highly appreciated.

Thanks and regards,

--
Qadeer
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: How to link statically openssl in a dylib

2005-04-27 Thread Qadeer Baig
Thank you Joseph, I also wondered to see ssl libraries in /usr/lib on
my machine, when I started using ssl, but before seeing them there I
had tried to compile Openssl on my machine so I thought this
compilation has placed them there.
But still, client says link them statically :(

Regards,

--
Qadeer

 OS X ships with openssl pre-installed so you will never find a machine that 
 does
 not have the dylib's available in /usr/lib. However, the version shipped is
 0.9.7b.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]