2007-01-15 23:30:54 +00:00
|
|
|
#
|
2011-05-17 08:25:26 +00:00
|
|
|
# spec file for package perl-IO-Socket-SSL
|
2007-01-15 23:30:54 +00:00
|
|
|
#
|
2025-06-03 09:21:48 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:30:54 +00:00
|
|
|
#
|
2008-08-18 22:22:02 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-20 07:31:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:54 +00:00
|
|
|
#
|
|
|
|
|
2011-05-17 08:25:26 +00:00
|
|
|
|
2021-03-02 11:44:59 +00:00
|
|
|
%define cpan_name IO-Socket-SSL
|
2007-01-15 23:30:54 +00:00
|
|
|
Name: perl-IO-Socket-SSL
|
2025-07-11 10:20:20 +00:00
|
|
|
Version: 2.95.0
|
2011-12-08 11:15:34 +00:00
|
|
|
Release: 0
|
2025-07-11 10:20:20 +00:00
|
|
|
# 2.095 -> normalize -> 2.95.0
|
|
|
|
%define cpan_version 2.095
|
2018-02-16 08:46:31 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-09-28 13:30:53 +00:00
|
|
|
Summary: Nearly transparent SSL encapsulation for IO::Socket::INET
|
2019-05-27 15:40:11 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-07-11 14:44:59 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SU/SULLR/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-19 07:10:15 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:50 +02:00
|
|
|
Source100: README.md
|
2020-02-19 06:19:15 +00:00
|
|
|
BuildArch: noarch
|
2010-11-24 21:06:13 +00:00
|
|
|
BuildRequires: perl
|
- update to 1.88
+ consider a value of '' the same as undef for SSL_ca_(path|file)
+ complain if given SSL_(key|cert|ca)_(file|path) do not exist or
if they are not readable
+ disabled client side SNI for openssl version < 1.0.0
+ added functions can_client_sni, can_server_sni, can_npn to check
avaibility of SNI and NPN features. Added more documentation for
SNI and NPN
+ Server Name Indication (SNI) support on the server side
+ sub error sets $SSL_ERROR etc only if there really is an error,
otherwise it will keep the latest error. This causes
IO::Socket::SSL->new.. to report the correct problem, even if
the problem is deeper in the code (like in connect)
+ deprecated set_ctx_defaults, new name ist set_defaults
+ changed handling of default path for SSL_(ca|cert|key)* keys: either
if one of these keys is user defined don't add defaults for the
others, e.g. don't mix user settings and defaults
+ cleaner handling of module defaults vs. global settings vs. socket
specific settings
+ prepare transition to a more secure default for SSL_verify_mode.
The use of the current default SSL_VERIFY_NONE will cause a big warning
for clients, unless SSL_verify_mode was explicitly set inside the
application to this insecure value.
In the near future the default will be SSL_VERIFY_PEER, and thus
causing verification failures in unchanged applications.
+ use getnameinfo instead of unpack_sockaddr_in6 to get PeerAddr and
PeerPort from sockaddr in _update_peer, because this provides scope
+ work around systems which don't defined AF_INET6
+ update_peer for IPv6 also
+ no longer depend on Socket.pm 1.95 for inet_pton, but use
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IO-Socket-SSL?expand=0&rev=58
2013-05-11 23:06:34 +00:00
|
|
|
BuildRequires: perl-macros
|
2018-02-12 12:13:28 +00:00
|
|
|
#BuildRequires: perl(Mozilla::CA)
|
2025-06-03 09:21:48 +00:00
|
|
|
BuildRequires: perl(Net::SSLeay) >= 1.460
|
2018-02-12 12:13:28 +00:00
|
|
|
#Requires: perl(Mozilla::CA)
|
2025-06-03 09:21:48 +00:00
|
|
|
Requires: perl(Net::SSLeay) >= 1.460
|
2024-07-11 14:44:59 +00:00
|
|
|
Provides: perl(IO::Socket::SSL) = %{version}
|
2025-06-03 09:21:48 +00:00
|
|
|
Provides: perl(IO::Socket::SSL::Intercept) = 2.56.0
|
2024-07-11 14:44:59 +00:00
|
|
|
Provides: perl(IO::Socket::SSL::OCSP_Cache)
|
|
|
|
Provides: perl(IO::Socket::SSL::OCSP_Resolver)
|
|
|
|
Provides: perl(IO::Socket::SSL::PublicSuffix)
|
|
|
|
Provides: perl(IO::Socket::SSL::SSL_Context)
|
|
|
|
Provides: perl(IO::Socket::SSL::SSL_HANDLE)
|
|
|
|
Provides: perl(IO::Socket::SSL::Session_Cache)
|
|
|
|
Provides: perl(IO::Socket::SSL::Trace)
|
2025-06-03 09:21:48 +00:00
|
|
|
Provides: perl(IO::Socket::SSL::Utils) = 2.15.0
|
2024-07-11 14:44:59 +00:00
|
|
|
%undefine __perllib_provides
|
2011-05-04 11:11:22 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:30:54 +00:00
|
|
|
|
|
|
|
%description
|
2014-07-25 09:50:24 +00:00
|
|
|
IO::Socket::SSL makes using SSL/TLS much easier by wrapping the necessary
|
2016-03-11 21:33:35 +00:00
|
|
|
functionality into the familiar IO::Socket interface and providing secure
|
|
|
|
defaults whenever possible. This way, existing applications can be made
|
|
|
|
SSL-aware without much effort, at least if you do blocking I/O and don't
|
|
|
|
use select or poll.
|
2015-05-02 08:04:16 +00:00
|
|
|
|
|
|
|
But, under the hood, SSL is a complex beast. So there are lots of methods
|
|
|
|
to make it do what you need if the default behavior is not adequate.
|
|
|
|
Because it is easy to inadvertently introduce critical security bugs or
|
|
|
|
just hard to debug problems, I would recommend studying the following
|
2014-07-25 09:50:24 +00:00
|
|
|
documentation carefully.
|
|
|
|
|
|
|
|
The documentation consists of the following parts:
|
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Essential Information About SSL/TLS"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Basic SSL Client"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Basic SSL Server"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Common Usage Errors"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Common Problems with SSL"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Using Non-Blocking Sockets"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Advanced Usage"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Integration Into Own Modules"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * "Description Of Methods"
|
2014-07-25 09:50:24 +00:00
|
|
|
|
|
|
|
Additional documentation can be found in
|
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * IO::Socket::SSL::Intercept - Doing Man-In-The-Middle with SSL
|
2014-07-25 09:50:24 +00:00
|
|
|
|
2016-03-11 21:33:35 +00:00
|
|
|
* * IO::Socket::SSL::Utils - Useful functions for certificates etc
|
2007-01-15 23:30:54 +00:00
|
|
|
|
|
|
|
%prep
|
2025-06-03 09:21:48 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2023-01-31 12:51:03 +00:00
|
|
|
|
2023-06-01 15:22:17 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:30:54 +00:00
|
|
|
|
|
|
|
%build
|
2019-02-23 09:58:46 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-03-02 11:44:59 +00:00
|
|
|
%make_build
|
2013-11-26 08:14:16 +00:00
|
|
|
|
|
|
|
%check
|
2020-02-19 06:19:15 +00:00
|
|
|
make test
|
2007-06-11 11:08:20 +00:00
|
|
|
|
2007-01-15 23:30:54 +00:00
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-11-24 21:06:13 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:54 +00:00
|
|
|
|
2010-11-24 21:06:13 +00:00
|
|
|
%files -f %{name}.files
|
2024-07-04 13:44:00 +00:00
|
|
|
%doc BUGS Changes docs example README
|
2008-01-28 15:08:44 +00:00
|
|
|
|
2007-03-07 12:38:30 +00:00
|
|
|
%changelog
|