1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/www/gist/files/patch-build-gist
Hiroki Tagato 02dc6a7ec7 - Update to 5.1
- Fix API deprecation warning

PR:		245066
Submitted by:	Derek Schrock <dereks@lifeofadishwasher.com>
Approved by:	maintainer timeout (changlp@cs.nctu.edu.tw, 25 days),
		ehaupt (mentor)
MFH:		2020Q2 (blanket)
Changelog:	https://github.com/defunkt/gist/releases/tag/v5.1.0
2020-04-22 07:20:03 +00:00

13 lines
443 B
Plaintext

--- build/gist.orig 2020-02-05 20:01:45 UTC
+++ build/gist
@@ -1713,7 +1713,8 @@ module Gist
end
if uri.scheme == "https"
connection.use_ssl = true
- connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
+ connection.ca_file = "%%LOCALBASE%%/share/certs/ca-root-nss.crt"
end
connection.open_timeout = 10
connection.read_timeout = 10