gauche-0.9.5-libressl.patch 707 B

1234567891011121314151617181920
  1. commit c26a4836e767807dd8c98d280c4d9e742b759edd
  2. Author: Shiro Kawai <shiro@acm.org>
  3. Date: Sun Oct 9 02:04:19 2016 -1000
  4. rfc.tls - Detect LibreSSL as well
  5. diff --git a/ext/tls/test.scm b/ext/tls/test.scm
  6. index 63a1d04..efbfbca 100644
  7. --- a/ext/tls/test.scm
  8. +++ b/ext/tls/test.scm
  9. @@ -37,7 +37,7 @@
  10. [(not gauche.os.windows)
  11. (guard (e [(<process-abnormal-exit> e)
  12. (no-openssl "couldn't run openssl command")])
  13. - (if-let1 m ($ #/OpenSSL\s+([\d\.]+\w*)/
  14. + (if-let1 m ($ #/(?:OpenSSL|LibreSSL)\s+([\d\.]+\w*)/
  15. $ process-output->string `(,openssl-cmd "version"))
  16. (let1 vers (m 1)
  17. (unless (version>=? vers "1.0.1")