The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6e24fe61287b02600be19042a6f6ce939aabfaa6

commit 6e24fe61287b02600be19042a6f6ce939aabfaa6
Author:     Ed Maste <[email protected]>
AuthorDate: 2022-04-23 19:52:03 +0000
Commit:     Ed Maste <[email protected]>
CommitDate: 2022-04-24 00:07:57 +0000

    ssh: use upstream SSH_OPENSSL_VERSION macro
    
    With the upgrade to OpenSSH 6.7p1 in commit a0ee8cc636cd we replaced
    WITH_OPENSSL ifdefs with an OPENSSL_VERSION macro, later changing it
    to OPENSSL_VERSION_STRING.
    
    A few years later OpenSSH made an equivalent change (with a different
    macro name), in commit 4d94b031ff88.  Switch to the macro name they
    chose.
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 crypto/openssh/ssh.c     | 6 +++---
 crypto/openssh/sshd.c    | 4 ++--
 crypto/openssh/version.h | 6 ------
 3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/crypto/openssh/ssh.c b/crypto/openssh/ssh.c
index 8a33b06bea88..860ad31954a0 100644
--- a/crypto/openssh/ssh.c
+++ b/crypto/openssh/ssh.c
@@ -876,10 +876,10 @@ main(int ac, char **av)
                            *options.version_addendum != '\0')
                                fprintf(stderr, "%s %s, %s\n", SSH_RELEASE,
                                    options.version_addendum,
-                                   OPENSSL_VERSION_STRING);
+                                   SSH_OPENSSL_VERSION);
                        else
                                fprintf(stderr, "%s, %s\n", SSH_RELEASE,
-                                   OPENSSL_VERSION_STRING);
+                                   SSH_OPENSSL_VERSION);
                        if (opt == 'V')
                                exit(0);
                        break;
@@ -1147,7 +1147,7 @@ main(int ac, char **av)
 
        if (debug_flag)
                /* version_addendum is always NULL at this point */
-               logit("%s, %s", SSH_RELEASE, OPENSSL_VERSION_STRING);
+               logit("%s, %s", SSH_RELEASE, SSH_OPENSSL_VERSION);
 
        /* Parse the configuration files */
        process_config_files(host_arg, pw, 0, &want_final_pass);
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c
index c8a405a96ce5..50c8eabb18bb 100644
--- a/crypto/openssh/sshd.c
+++ b/crypto/openssh/sshd.c
@@ -923,10 +923,10 @@ usage(void)
            *options.version_addendum != '\0')
                fprintf(stderr, "%s %s, %s\n",
                    SSH_RELEASE,
-                   options.version_addendum, OPENSSL_VERSION_STRING);
+                   options.version_addendum, SSH_OPENSSL_VERSION);
        else
                fprintf(stderr, "%s, %s\n",
-                   SSH_RELEASE, OPENSSL_VERSION_STRING);
+                   SSH_RELEASE, SSH_OPENSSL_VERSION);
        fprintf(stderr,
 "usage: sshd [-46DdeiqTt] [-C connection_spec] [-c host_cert_file]\n"
 "            [-E log_file] [-f config_file] [-g login_grace_time]\n"
diff --git a/crypto/openssh/version.h b/crypto/openssh/version.h
index afebfdaeb591..f4800eaa05e8 100644
--- a/crypto/openssh/version.h
+++ b/crypto/openssh/version.h
@@ -6,9 +6,3 @@
 #define SSH_RELEASE    SSH_VERSION SSH_PORTABLE
 
 #define SSH_VERSION_FREEBSD    "FreeBSD-20220415"
-
-#ifdef WITH_OPENSSL
-#define OPENSSL_VERSION_STRING OpenSSL_version(OPENSSL_VERSION)
-#else
-#define OPENSSL_VERSION_STRING "without OpenSSL"
-#endif

Reply via email to