How to re-build openssl with SHA1 support?

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

Next thread: qemu can not boot openbsd by Dan Liu on Tuesday, May 27, 2008 - 10:32 am. (4 messages)
To: <misc@...>
Date: Tuesday, May 27, 2008 - 10:26 am

Hello Everybody,

$Subject

--
With best regards,
Gregory Edigarov

To: Gregory Edigarov <greg@...>
Cc: <misc@...>
Date: Tuesday, May 27, 2008 - 11: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

To: Philip Guenther <guenther@...>, <misc@...>
Date: Tuesday, May 27, 2008 - 11: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

To: Gregory Edigarov <greg@...>
Cc: <misc@...>
Date: Tuesday, May 27, 2008 - 11: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

To: <misc@...>
Date: Tuesday, May 27, 2008 - 11:33 am

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

To: Jason Beaudoin <jasonbeaudoin@...>
Cc: Gregory Edigarov <greg@...>, <misc@...>
Date: Tuesday, May 27, 2008 - 11: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/

To: Jason Beaudoin <jasonbeaudoin@...>
Cc: <misc@...>
Date: Tuesday, May 27, 2008 - 11:29 am

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

--

With best regards,
Gregory Edigarov

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

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