ssh_SSLeay_add_all_algorithms()

Robert Dugal rdugal at certicom.com
Thu Sep 8 23:49:02 EST 2011


Please disregard my earlier post. I believe I have figured out the answer myself.

It looks like beginning with 5.7p1 calls to SSLeay_add_all_algorithms() were replaced with OpenSSL_add_all_algorithms().
In OpenSSL 1.0.0d the include file evp.h then redefines OpenSSL_add_all_algorithms() to either OPENSSL_add_all_algorithms_conf() or OPENSSL_add_all_algorithms_noconf() depending on whether OPENSSL_LOAD_CONF is defined. It also defines SSLeay_add_all_algorithms() as OpenSSL_add_all_algorithms().
OPENSSL_add_all_algorithms_conf() is basically equivalent to ssh_SSLeay_add_all_algorithms().

So ssh_SSLeay_add_all_algorithms() isn't needed with OpenSSL 1.0.0d and probably for several other versions of openssl. 



-- 
Robert Dugal	Team Lead SSL & PKI Group
Certicom Corp.	A Subsidiary of Research In Motion
		4701 Tahoe Blvd., Building A
		Mississauga, ON
		L4W 0B5
 
rdugal at certicom.com
direct       	+1.289.261.4148
mobile      	+1.416.276.8062
main         	+1.905.507.4220
fax             	+1.905.507.4230
www.certicom.com


-----Original Message-----
From: Robert Dugal 
Sent: Thursday, September 08, 2011 9:33 AM
To: openssh-unix-dev at mindrot.org
Subject: ssh_SSLeay_add_all_algorithms() 

I am confused on how ssh_SSLeay_add_all_algorithms() get used in the ssh applications for openssh-5.7p1 and later releases.
I don't see any of the applications making calls to ssh_SSLeay_add_all_algorithms().
There is a macro that redefines SSLeay_add_all_algorithms() to ssh_SSLeay_add_all_algorithms() but I don't see any code calling SSLeay_add_all_algorithms().


In openssh-5.6p1 and earlier releases (I looked as far back as openssh-4.7p1) all these sources below have calls to SSLeay_add_all_algorithms(), 
which means that when configured --with-ssl-engine would get replaced as ssh_SSLeay_add_all_algorithms():
ssh-add.c 
ssh-agent.c
ssh-keygen.c
ssh-keysign.c
ssh.c
sshd.c

But starting with openssh-5.7p1 these calls are all gone.
Is this a bug or can anyone explain how this should work in 5.6p1 and later?   

SSLeay_add_all_algorithms() is replaced with OpenSSL_add_all_algorithms().

-- 
Robert Dugal	Team Lead SSL & PKI Group
Certicom Corp.	A Subsidiary of Research In Motion
                  4701 Tahoe Blvd., Building A
                  Mississauga, ON
                  L4W 0B5
 
rdugal at certicom.com
direct       	+1.289.261.4148
mobile      	+1.416.276.8062
main         	+1.905.507.4220
fax             	+1.905.507.4230
www.certicom.com



---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.


More information about the openssh-unix-dev mailing list