[ntp:hackers] No OpenSSL in ntpq and ntpdc?
Heiko Gerstung
heiko.gerstung at meinberg.de
Wed Apr 20 02:40:51 PDT 2005
Harlan, (sorry for misspelling your name in my private copy to you)
thanks for your fast reply. Please note that we are talking about the
Windows port only, I did not check if there are any similarities in the
unix build.
Harlan Stenn schrieb:
>I don't think much attention has been paid to knowing what executables
>need which subroutines from libntp.
>
>
I don't care either, my projects builds just fine after adding all
necessary parts from libntp.
>ntp does not need OpenSSL, but without it the only authentication mechanism
>that is available is MD5.
>
>
Ok, but for me it looks like ntpq and ntpdc will not use openssl, even
if its present. They just do not call any openssl functions and there
are no dependencies with one of the openssl DLLs, so even if I'd like to
have a openssl-enabled ntpq or ntpdc, I cannot build one.
>If OpenSSL is available and used, then some areas of the code will use
>openssl and there will be areas that do not *need* openssl (but it may have
>to be there to satisfy some linkage issues or compiler #include issues).
>
>
The openssl dependencies are checked directly before the executable
starts (there is a possibility to change that behaviour, but as both
ntpd and ntp-keygen are using the "check before startup" approach) and
will complain and fail to run even if the openssl functions would never
get called during the normal execution of the program.
>I suspect you are one of the first people to try and simply build ntpq by
>itself. If that is all you really want to do you should therefore be able
>to do it by removing the #define that says that OPENSSL should be used.
>
>
No, that's not what I'd want. I'd like to build ntpq and ntpdc with
openssl support under windows, but it seems that those two proggies do
not use openssl at all, no matter if its there or has been defined in
config.h.
From your reply I learn that ntpq and ntpdc _should_ use openssl, if
available and enabled in config.h, so I'd consider this a bug. What do
you think?
>H
>
>
Kind regards,
Heiko
--
------------------------------------------------------------------------
*Meinberg Funkuhren*
Auf der Landwehr 22
D-31812 Bad Pyrmont, Germany
Tel.: ++49 (0)5281 9309-25
Fax: ++49 (0)5281 9309-30
eMail: heiko.gerstung at meinberg.de <mailto:heiko.gerstung at meinberg.de>
Internet: www.meinberg.de <http://www.meinberg.de/>
------------------------------------------------------------------------
Meinberg radio clocks: 25 years of accurate time worldwide
More information about the hackers
mailing list