SHA256
8
0
forked from pool/cpprest

Accepting request 1131489 from home:1Antoine1:branches:devel:libraries:c_c++

- Update to 2.10.19:
  * Make Uri.is_host_loopback() only return true for localhost and 127.0.0.1 exactly. 
    The old behavior could potentially return "true" for URLs that were not, in fact, local,
    and this could cause security issues if is_host_loopback was used in certain ways.
  * Fix likely typo in SafeInt3.hpp, that results in error with clang 15
  * Support for oauth2 with "client_credentials" grant type.
  * Add constructor from all integer types for json value.
  * Export http_exception for non Windows builds using visibility macros.

OBS-URL: https://build.opensuse.org/request/show/1131489
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=55
This commit is contained in:
2023-12-07 07:44:00 +00:00
committed by Git OBS Bridge
parent 878c7a3804
commit 3834cc4559
4 changed files with 22 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package cpprest
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%define major 2
%define minor 10
Name: cpprest
Version: 2.10.18
Version: 2.10.19
Release: 0
Summary: C++ REST library
# main: MIT (license.txt)
@@ -28,9 +28,9 @@ Summary: C++ REST library
# sha1/sha1.hpp: BSD-3-Clause (ThirdPartyNotices.txt)
# common/md5.hpp: Zlib (ThirdPartyNotices.txt)
# utf8_validation.hpp: MIT (ThirdPartyNotices.txt)
License: MIT AND BSD-3-Clause AND Zlib
License: BSD-3-Clause AND MIT AND Zlib
URL: https://github.com/Microsoft/cpprestsdk
Source: https://github.com/Microsoft/cpprestsdk/archive/%{version}/cpprestsdk-%{version}.tar.gz
Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}/cpprestsdk-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- https://github.com/Microsoft/cpprestsdk/issues/576
Patch1: cpprest-2.10.9-disable-test-extract_floating_point.patch
# PATCH-FIX-UPSTREAM -- https://github.com/microsoft/cpprestsdk/pull/1557
@@ -99,10 +99,10 @@ exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}
Name: %{name}
Name: %{name}
Description: cloud-based client-server communication
URL: %{url}
Version: %{version}
URL: %{url}
Version: %{version}
Libs: -L%{_libdir} -lcpprest
Cflags: -I%{_includedir}/cpprest -I%{_includedir}/pplx
EOF