0001-rsync-ssl-Verify-the-hostname-in-the-certificate-when-using-openssl.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From c3f7414c450faaf6a8281cc4a4403529aeb7d859 Mon Sep 17 00:00:00 2001
  2. From: Matt McCutchen <matt@mattmccutchen.net>
  3. Date: Wed, 26 Aug 2020 12:16:08 -0400
  4. Subject: [PATCH] rsync-ssl: Verify the hostname in the certificate when using
  5. openssl.
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. [Retrieved from:
  8. https://git.samba.org/?p=rsync.git;a=commitdiff;h=c3f7414c450faaf6a8281cc4a4403529aeb7d859]
  9. ---
  10. rsync-ssl | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/rsync-ssl b/rsync-ssl
  13. index 8101975a..46701af1 100755
  14. --- a/rsync-ssl
  15. +++ b/rsync-ssl
  16. @@ -129,7 +129,7 @@ function rsync_ssl_helper {
  17. fi
  18. if [[ $RSYNC_SSL_TYPE == openssl ]]; then
  19. - exec $RSYNC_SSL_OPENSSL s_client $caopt $certopt -quiet -verify_quiet -servername $hostname -connect $hostname:$port
  20. + exec $RSYNC_SSL_OPENSSL s_client $caopt $certopt -quiet -verify_quiet -servername $hostname -verify_hostname $hostname -connect $hostname:$port
  21. elif [[ $RSYNC_SSL_TYPE == gnutls ]]; then
  22. exec $RSYNC_SSL_GNUTLS --logfile=/dev/null $gnutls_cert_opt $gnutls_opts $hostname:$port
  23. else
  24. --
  25. 2.25.1