Hi Marek,

You understood me correctly. But basically I want binary should be very
less in size. Earlier openssl binary was 1.7MB, after your step passwd
binary is 1.1MB. It cannot be accepted. I think right now libssl3.so is
linked statically. If we link dynamically then size can be reduce
because libssl3.so is already available on the box.

Please help me in doing so.

Thanks,
Ranjeet


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola
Sent: Wednesday, November 28, 2007 3:15 AM
To: openssl-users@openssl.org
Subject: RE: compiling openssl only with passwd application

Hello,
> I need htpasswd password, which crypt does not support. It can be done
> only with openssl. So please help me in that.
I'm not sure if I understand you correctly, but if you want to compile
only passwd application from apps/ directory you may do something like
that on Linux:

    $ gzip -dc openssl-0.9.8g.tar.gz | tar xvf -
    $ cd openssl-0.9.8g
    $ ./Configure linux-elf
    $ make
    $ cd apps
    $ rm passwd.o
    $ vi Makefile
        change:
            CFLAGS= -DMONOLITH $(INCLUDES) $(CFLAG)
        to:
            CFLAGS= $(INCLUDES) $(CFLAG)
    $ make passwd.o
    $ cc -o passwd passwd.o apps.o ../libcrypto.a -ldl
    $ ldd passwd
            linux-gate.so.1 =>  (0x00c5a000)
            libdl.so.2 => /lib/libdl.so.2 (0x4b03a000)
            libc.so.6 => /lib/libc.so.6 (0x4aede000)
            /lib/ld-linux.so.2 (0x4aec1000)
    $ ./passwd -apr1
    Password:
    Verifying - Password:
    $apr1$4b2z6n2X$lGDAkOXiX2jZYcF4gXA08.


Best regards,
--
Marek Marcola <[EMAIL PROTECTED]>

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


The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.

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

Reply via email to