How to re-build openssl with SHA1 support?

Previous thread: strlcat/strlcpy vs overlapping arguments by Jonathan Thornburg on Tuesday, May 27, 2008 - 3:53 am. (10 messages)

Next thread: qemu can not boot openbsd by Dan Liu on Tuesday, May 27, 2008 - 7:32 am. (4 messages)
From: Gregory Edigarov
Date: Tuesday, May 27, 2008 - 7:26 am

Hello Everybody,

$Subject

-- 
With best regards,
	Gregory Edigarov

From: Philip Guenther
Date: Tuesday, May 27, 2008 - 8:00 am

On Tue, May 27, 2008 at 8:26 AM, Gregory Edigarov
("How to re-build openssl with SHA1 support?")

Umm, the OpenSSL included with OpenBSD _does_ include SHA1 support.
This can be seen in the output of "openssl ciphers -v" and "openssl
list-message-digest-commands".  What made you think it didn't have
SHA1 support compiled in?

(So, the pedantic answer to your question is "cd /usr/src/lib/libssl && make")


Philip Guenther

From: Gregory Edigarov
Date: Tuesday, May 27, 2008 - 8:14 am

While trying to configure for ctorrent this is what I have from configure:

checking dependency style of gcc... gcc3
checking for SHA1_Init in -lssl... no
checking for SHA1_Init in -lcrypt... no
checking for SHA1_Init in -lmd... no
configure: error: error, Please install OpenSSL first!




-- 
With best regards,
	Gregory Edigarov

From: Jason Beaudoin
Date: Tuesday, May 27, 2008 - 8:20 am

On Tue, May 27, 2008 at 11:14 AM, Gregory Edigarov

check where the configure script is looking for those libs, you might
need to specify otherwise..

~J

From: Gregory Edigarov
Date: Tuesday, May 27, 2008 - 8:29 am

What I've done was just: export LDFLAGS=-lcrypto   
that did the magic.

-- 

With best regards,
	Gregory Edigarov

From: Gilles Chehade
Date: Tuesday, May 27, 2008 - 8:32 am

I mistakenly deleted the original mail, SHA1_Init is in libcrypto, not libssl.

poolp:gilles {292} nm /usr/lib/libcrypto.so.13.0 | grep SHA1_Init
0009ed2c T SHA1_Init
poolp:gilles {293}

Gilles

-- 
Gilles Chehade
http://www.poolp.org/

From: Die Gestalt
Date: Tuesday, May 27, 2008 - 8:33 am

You indeed need to specify the openssl directory which is different on
OpenBSD. A ./configure --help might give you the needed information.


Previous thread: strlcat/strlcpy vs overlapping arguments by Jonathan Thornburg on Tuesday, May 27, 2008 - 3:53 am. (10 messages)

Next thread: qemu can not boot openbsd by Dan Liu on Tuesday, May 27, 2008 - 7:32 am. (4 messages)