6
0
forked from pool/boringssl

Compare commits

14 Commits

Author SHA256 Message Date
bebc004aab Accepting request 1218740 from security:tls
OBS-URL: https://build.opensuse.org/request/show/1218740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=14
2024-10-28 14:22:21 +00:00
30a1ba0843 - Change version of the sources to 0.%%cd to avoid problems when
upgrading if the versioning changes.
- Added patch:
  * soname-sover.patch
    + Replace patchelf run with patch that makes cmake produce the
      shared libraries with the right SONAME and SOVER.
- Remove unnecessary dependencies on go, patchelf, ninja and
  libunwind, since they are only needed for tests we are not
  running

OBS-URL: https://build.opensuse.org/package/show/security:tls/boringssl?expand=0&rev=39
2024-10-28 08:59:55 +00:00
e9940d43bc Accepting request 1145361 from security:tls
OBS-URL: https://build.opensuse.org/request/show/1145361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=13
2024-02-09 22:53:52 +00:00
98ba11df3f Accepting request 975340 from security:tls
OBS-URL: https://build.opensuse.org/request/show/975340
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=12
2022-05-06 16:59:48 +00:00
6e4d344b98 Accepting request 893862 from security:tls
- Update to version 20200921 (fixes bsc#1183836, bsc#1181866):
  * Add SSL_CIPHER_get_protocol_id.
  * Add TrustTokenV2.
  * Add X509_get_pathlen and X509_REVOKED_get0_extensions.
  * Add some accommodations for FreeRDP
  * Require non-NULL store in X509_STORE_CTX_init.
  * Const-correct X509V3_CONF_METHOD.
  * Avoid unions in X509_NAME logic.
  * Bump OPENSSL_VERSION_NUMBER to 1.1.1.
  * Document more of x509.h.
  * Fix potential leak in bssl::Array::Shrink.
  * Remove ASN1_STRING_length_set.
  * Revert "Check AlgorithmIdentifier parameters for RSA and ECDSA signatures."
  * Implement PSK variants of HPKE setup functions.
  * acvp: support working with files.
  * Document a few more functions in x509.h.
  * Add subject key ID and authority key ID accessors.
  * Remove sxnet and pkey_usage_period extensions.
  * Const-correct various X509 functions.
  * Make X509_set_not{Before,After} functions rather than macros.
  * Add X509_get0_uids from OpenSSL 1.1.0.
  * Bound RSA and DSA key sizes better.
  * Add set1 versions of X509 timestamp setters.
  * Consistently sort generated build files.
  * delocate: use 64-bit GOT offsets in the large memory model.
  * Update HPKE implementation and test vectors to draft-irtf-cfrg-hpke-05.
  * Handle NULL arguments in some i2d_* functions.
  * aarch64: support BTI and pointer authentication in assembly
  * Support delegated credentials verison 06
  * delocation: large memory model support. (forwarded request 893861 from mrostecki)

OBS-URL: https://build.opensuse.org/request/show/893862
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=11
2021-05-25 19:07:45 +00:00
397b2415f5 Accepting request 809934 from security:tls
OBS-URL: https://build.opensuse.org/request/show/809934
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=10
2020-05-29 19:23:50 +00:00
874a708b2d Accepting request 783547 from security:tls
OBS-URL: https://build.opensuse.org/request/show/783547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=9
2020-03-11 17:51:34 +00:00
e490b830d6 Accepting request 753912 from security:tls
OBS-URL: https://build.opensuse.org/request/show/753912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=8
2019-12-04 12:55:47 +00:00
528994ad7d Accepting request 740085 from security:tls
OBS-URL: https://build.opensuse.org/request/show/740085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=7
2019-11-06 12:54:54 +00:00
9fd028c8a9 Accepting request 738259 from security:tls
- Update to version 20190916:
  * Revert "Fix VS build when assembler is enabled"
  * Only bypass the signature verification itself in fuzzer mode.
  * Move the PQ-experiment signal to SSL_CTX.
  * Name cipher suite tests in runner by IETF names.
  * Align TLS 1.3 cipher suite names with OpenSSL.
  * Prefix all the SIKE symbols.
  * Rename SIKE's params.c.
  * Add post-quantum experiment signal extension.
  * Fix shim error message endings.
  * Add initial draft of ACVP tool.
  * Implements SIKE/p434
  * Add SipHash-2-4.
  * Remove android_tools checkout
  * Support key wrap with padding in CAVP.
  * Add android_sdk checkout
  * Move fipstools/ to util/fipstools/cavp
  * Factor out TLS cipher selection to ssl_choose_tls_cipher.
  * Emit empty signerInfos in PKCS#7 bundles.
  * Clarify language about default SSL_CTX session ticket key behavior.
  * Add an API to record use of delegated credential
  * Fix runner tests with Go 1.13.
  * Add a value barrier to constant-time selects.
  * Avoid leaking intermediate states in point doubling special case.
  * Split p224-64.c multiplication functions in three.
  * Add AES-KWP
  * Discuss the doubling case in windowed Booth representation.
  * Update build tools.
  * Set a minimum CMake version of 3.0.
  * Replace addc64,subc64,mul64 in SIKE Go code with functions from math/bits

OBS-URL: https://build.opensuse.org/request/show/738259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=6
2019-10-16 07:13:31 +00:00
80ea3018e7 Accepting request 728293 from security:tls
OBS-URL: https://build.opensuse.org/request/show/728293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=5
2019-09-04 13:45:47 +00:00
068b8cacc1 Accepting request 728033 from security:tls
- Update to version 20190523:
  * Disable RDRAND on AMD chips before Zen.
  * Always store early data tickets.
  * Align PKCS12_parse closer to OpenSSL.
  * Support PKCS#12 KeyBags.
  * Support PKCS#8 blobs using PBES2 with HMAC-SHA256.
  * Make EVP_PKEY_keygen work for Ed25519.
  * Sync aesp8-ppc.pl with upstream.
  * Update generate_build_files.py for SIKE.
  * Fix the last casts in third_party/sike.
  * Remove no-op casts around tt1.
  * Define p503 with crypto_word_t, not uint64_t.
  * Add support for SIKE/p503 post-quantum KEM
  * tool: fix speed tests.
  * Add an option to skip crypto_test_data.cc in GN too.
  * Save and restore errors when ignoring ssl_send_alert result.
  * Reject obviously invalid DSA parameters during signing.
  * Make expect/expected flag and variable names match.
  * clang-format Flag arrays in test_config.cc.
  * Rename remnants of ticket_early_data_info.
  * Enforce the ticket_age parameter for 0-RTT.
  * Add SSL_get_early_data_reason.
  * Remove implicit -on-resume for -expect-early-data-accept.
  * Use weak symbols only on supported platforms
  * Fix spelling in comments.
  * Add functions for "raw" EVP_PKEY serializations.
  * Remove stray underscores.
  * Add a compatibility EVP_DigestFinalXOF function.
  * Fix up EVP_DigestSign implementation for Ed25519.
  * Check for errors when setting up X509_STORE_CTX.

OBS-URL: https://build.opensuse.org/request/show/728033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=4
2019-09-04 07:34:23 +00:00
7c1a812136 Accepting request 727148 from security:tls
- Disable lto to fix build failure

OBS-URL: https://build.opensuse.org/request/show/727148
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=3
2019-08-30 12:42:07 +00:00
6f3bfb404e Accepting request 697963 from security:tls
- Add patch which fixes build on aarch64.
  * 0001-crypto-Fix-aead_test-build-on-aarch64.patch
- Update to version 20181228:
  * Use thread-local storage for PRNG states if fork-unsafe buffering is enabled.
  * Add Win64 SEH unwind codes for the ABI test trampoline.
  * Translate .L directives inside .byte too.
  * Add an ABI testing framework.
  * Use same HKDF label as TLS 1.3 for QUIC as per draft-ietf-quic-tls-17
  * Add |SSL_key_update|.
  * HRSS: omit reconstruction of ciphertext.
  * Add start of infrastructure for checking constant-time properties.
  * Don't enable intrinsics on x86 without ABI support.
  * HRSS: be strict about unused bits being zero.
  * Disable AES-GCM-SIV assembly on Windows.
  * Fix typo in AES-GCM-SIV comments.
  * Fix HRSS build error on ARM
  * Fix thread-safety bug in SSL_get_peer_cert_chain.
  * Remove HRSS confirmation hash.
  * Drop NEON assembly for HRSS.
  * Add |SSL_export_traffic_secrets|.
  * Patch out the XTS implementation in bsaes.
  * Remove .file and .loc directives from HRSS ARM asm.
  * Do not allow AES_128_GCM_SHA256 with CECPQ2.
  * Always 16-byte align |poly| elements.
  * Fix bug in HRSS tests.
  * Add initial HRSS support.
  * Forbid empty CertificateRequestsupported_signature_algorithms in TLS 1.2.
  * Eliminate |OPENSSL_ia32cap_P| in C code in the FIPS module.
  * Fix d2i_*_bio on partial reads.
  * Fix |BN_HEX_FMT2|.
  * Remove XOP code from sha512-x86_64.pl.
  * Pretend AMD XOP was never a thing.
  * Drop some explicit SSLKeyShare destructors.
  * Assume hyper-threading-like vulnerabilities are always present.
  * Replace the last CRITICAL_SECTION with SRWLOCK.
  * Validate ClientHellos in tests some more.
  * Re-enable AES-NI on 32-bit x86 too.
  * Make symbol-prefixing work on 32-bit x86.
  * Make Windows symbol-prefixing work.
  * Support Windows-style ar files.
  * Move __.SYMDEF handling to ar.go.
  * Fix stack_test.cc in the prefixed build.
  * Don't double-mangle C++ symbols on macOS.
  * Make read_symbols.go a bit more idiomatic.
  * Unexport and rename hex_to_string, string_to_hex, and name_cmp.
  * Satisfy golint.
  * Add a note that generated files are generated.
  * Work around a JDK 11 TLS 1.3 bug.
  * Move ARM cpuinfo functions to the header.
  * Regenerate obj_dat.h
  * go fmt
  * Support execute-only memory for AArch64 assembly.
  * Remove cacheline striping in copy_from_prebuf.
  * Tidy up type signature of BN_mod_exp_mont_consttime table.
  * No longer set CQ-Verified label on CQ success/failure.
  * Print a message when simulating CPUs.
  * Move JSON test results code into a common module.
  * In 0RTT mode, reverify the server certificate before sending early data.
  * Support assembly building for arm64e architecture.
  * Simulate other ARM CPUs when running tests.
  * Merge P-224 contract into serialisation.
  * Contract P-224 elements before returning them.
  * Add post-handshake support for the QUIC API.
  * Speculatively remove __STDC_*_MACROS.
  * Modernize OPENSSL_COMPILE_ASSERT, part 2.
  * Switch docs to recommending NASM.
  * Mark the |e| argument to |RSA_generate_key_ex| as const.
  * Clean up EC_POINT to byte conversions.
  * Need cpu.h for |OPENSSL_ia32cap_P|.
  * Rename EC_MAX_SCALAR_*.
  * Use EC_RAW_POINT in ECDSA.
  * Optimize EC_GFp_mont_method's cmp_x_coordinate.
  * Optimize EC_GFp_nistp256_method's cmp_x_coordinate.
  * Remove unreachable code.
  * Also accept __ARM_NEON
  * Remove some easy BN_CTXs.
  * Push BIGNUM out of the cmp_x_coordinate interface.
  * Push BIGNUM out of EC_METHOD's affine coordinates hook.
  * Fix r = p-n+epsilon ECDSA tests.
  * Don't include openssl/ec_key.h under extern "C".
  * Abstract hs_buf a little.
  * Inline ec_GFp_simple_group_get_degree.
  * Better test boundary cases of ec_cmp_x_coordinate.
  * Fix build when bcm.c is split up.
  * Revert "Revert "Speed up ECDSA verify on x86-64.""
  * Make SSL_get_current_cipher valid during QUIC callbacks.
  * Devirtualize ec_simple_{add,dbl}.
  * Refresh fuzzer corpora for changes to split-handshake serialization.
  * Serialize SSL curve list in handoff and check it on application.
  * Revert "Speed up ECDSA verify on x86-64."
  * Route the tuned add/dbl implementations out of EC_METHOD.
  * Speed up ECDSA verify on x86-64.
  * Include details about latest FIPS certification.
  * Serialize SSL configuration in handoff and check it on application.
  * Don't overflow state->calls on 16TiB RAND_bytes calls.
  * Buffer up QUIC data within a level internally.
  * Add an interface for QUIC integration.
  * Remove OPENSSL_NO_THREADS.
  * Minor fixes to bytestring.h header.
  * Test CBC padding more aggressively.
  * Restore CHECKED_CAST.
  * Fix EVP_tls_cbc_digest_record is slow using SHA-384 and short messages
  * Tidy up dsa_sign_setup.
  * Fix the build on glibc 2.15.
  * Modernize OPENSSL_COMPILE_ASSERT.
  * Fix redefinition of AEAD asserts in e_aes.c.
  * Guard sys/auxv.h include on !BORINGSSL_ANDROID.
  * Flatten EVP_AEAD_CTX
  * Implement SSL_get_tlsext_status_type
  * Fix documentation sectioning.
  * Remove support for GCC 4.7.
  * Print the name of the binary when blocking in getrandom.
  * Undo recent changes to |X509V3_EXT_conf_nid|.
  * Add a compatibility EVP_CIPH_OCB_MODE value.
  * [util] Mark srtp.h as an SSL header file
  * [rand] Disable RandTest.Fork on Fuchsia
  * Remove -fsanitize-cfi-icall-generalize-pointers.
  * Fix undefined function pointer casts in LHASH.
  * Use proper functions for lh_*.
  * Better handle AVX-512 assembly syntax.
  * Always push errors on BIO_read_asn1 failure.
  * Add a per-SSL TLS 1.3 downgrade enforcement option and improve tests.
  * Fix div.c to divide BN_ULLONG only if BN_CAN_DIVIDE_ULLONG defined.
  * Include aes.h in mode/internal.h
  * Fix section header capitalization.
  * Fix build in consumers that flag unused parameters.
  * [perlasm] Hide OPENSSL_armcap_P in assembly
  * Test the binary search more aggressively.
  * Opaquify CONF.
  * Bring Mac and iOS builders back to the CQ.
  * Remove LHASH_OF mention in X509V3_EXT_conf_nid.
  * Inline functions are apparently really complicated.
  * Actually disable RandTest.Fork on iOS.
  * Mostly fix undefined casts around STACK_OF's comparator.
  * Fix undefined casts in sk_*_pop_free and sk_*_deep_copy.
  * Take iOS builders out of the CQ rotation too.
  * Rewrite PEM_X509_INFO_read_bio.
  * Fix undefined block128_f, etc., casts.
  * Fix undefined function pointer casts in {d2i,i2d}_Foo_{bio,fp}
  * Fix undefined function pointer casts in IMPLEMENT_PEM_*.
  * Always print some diagnostic information when POST fails.
  * Disable RandTest.Fork on iOS.
  * Const-correct sk_find and sk_delete_ptr.
  * Add a test for STACK_OF(T).
  * Rename inject-hash: Bazel does not like hyphens.
  * Rename OPENSSL_NO_THREADS, part 1.
  * Fix ERR_GET_REASON checks.
  * Add a basic test for PEM_X509_INFO_read_bio.
  * Replace BIO_new + BIO_set_fp with BIO_new_fp.
  * Remove Mac try jobs from the CQ.
  * Add util/read_symbols.go
  * Tighten up getrandom handling.
  * Remove SHA384_Transform from sha.h.
  * Push an error on sigalg mismatch in X509_verify.
  * Sync bundled bits of golang.org/x/crypto.
  * Use Go modules with delocate.
  * Keep the GCM bits in one place.
  * Trim 88 bytes from each AES-GCM EVP_AEAD.
  * Set up Go modules.
  * Use sdallocx, if available, when deallocating.
  * Remove the add_alert hook.
  * Fix doc.go error capitalization.
  * Don't include quotes in heredocs.
  * Add missing bssl::UpRef overloads.
  * Roll back clang revision.
  * Update tools.
  * Fix BORINGSSL_NO_CXX.
  * Fix check of the pointer returned by BN_CTX_get
  * Include newlines at the end of generated asm.
  * Automatically disable assembly with MSAN.
  * Mark the C version of md5_block_data_order static.
  * Reorder some extensions to better match Firefox.
  * Make symbol-prefixing work on ARM.
  * Document alternative functions to BIO_f_base64.
  * Another batch of bools.
  * Add some RAND_bytes tests.
  * Support symbol prefixes
  * Fill in a fake session ID for TLS 1.3.
  * Create output directories for perlasm.
  * Fix Fiat path.
  * Fix GCC (8.2.1) build error.
  * Some more bools.
  * Flatten most of the crypto target.
  * Flatten assembly files.
  * Flatten the decrepit target.
  * Clarify "reference" and fix typo.
  * Fix corner case in cpuinfo parser.
  * Add some about ownership to API-CONVENTIONS.
  * Tidy up docs for #defines.
  * No negative moduli.
  * Document that ED25519_sign only fails on allocation failure
  * Clarify thread-safety of key objects.
  * shim: don't clear environment when invoking handshaker.
  * Switch the default TLS 1.3 variant to tls13_rfc.
  * Switch to Clang 6.0's fuzzer support.

OBS-URL: https://build.opensuse.org/request/show/697963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boringssl?expand=0&rev=2
2019-04-26 20:54:36 +00:00
6 changed files with 67 additions and 14 deletions

View File

@@ -4,7 +4,7 @@
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">boringssl</param>
<param name="versionformat">%cd</param>
<param name="versionformat">0.%cd</param>
<param name="revision">1ce6682c7f6cfe0426ed54a37c10775bea9d3502</param>
</service>
<service mode="disabled" name="recompress">

BIN
boringssl-0.20200921.tar.xz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:06c23874008d413073f4ffd8330574e8a5265a8f31609f7400a84f5a695bce9a
size 27974920

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sun Oct 27 20:24:10 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Change version of the sources to 0.%%cd to avoid problems when
upgrading if the versioning changes.
- Added patch:
* soname-sover.patch
+ Replace patchelf run with patch that makes cmake produce the
shared libraries with the right SONAME and SOVER.
- Remove unnecessary dependencies on go, patchelf, ninja and
libunwind, since they are only needed for tests we are not
running
-------------------------------------------------------------------
Fri Feb 9 08:08:42 UTC 2024 - Otto Hollmann <otto.hollmann@suse.com>

View File

@@ -20,7 +20,7 @@
%define libname libboringssl%{sover}
%define src_install_dir /usr/src/%{name}
Name: boringssl
Version: 20200921
Version: 0.20200921
Release: 0
Summary: An SSL/TLS protocol implementation
License: OpenSSL
@@ -32,13 +32,10 @@ Patch1: 0003-enable-s390x-builds.patch
Patch2: 0004-fix-alignment-for-ppc64le.patch
Patch3: 0005-fix-alignment-for-arm.patch
Patch4: 0001-Compile-for-RISC-V.patch
Patch5: soname-sover.patch
BuildRequires: cmake >= 3.0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: go
BuildRequires: libunwind-devel
BuildRequires: ninja
BuildRequires: patchelf
ExclusiveArch: %{ix86} x86_64 aarch64 s390x ppc64le %arm riscv64
%description
@@ -85,11 +82,8 @@ Source files for BoringSSL implementation
%install
# Install libraries
install -D -m0755 build/libcrypto.so %{buildroot}%{_libdir}/libboringssl_crypto.so.%{sover}
install -D -m0755 build/libssl.so %{buildroot}%{_libdir}/libboringssl_ssl.so.%{sover}
# Add SOVER to SONAME fields in libraries
patchelf --set-soname libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so.%{sover}
patchelf --set-soname libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so.%{sover}
install -D -m0755 build/libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so.%{sover}
install -D -m0755 build/libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so.%{sover}
# Create links from *.so to *.so.SOVER
ln -sf libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so
ln -sf libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so

46
soname-sover.patch Normal file
View File

@@ -0,0 +1,46 @@
diff -urEbwB boringssl-20200921.orig/CMakeLists.txt boringssl-20200921/CMakeLists.txt
--- boringssl-20200921.orig/CMakeLists.txt 2024-10-27 21:00:08.071155909 +0100
+++ boringssl-20200921/CMakeLists.txt 2024-10-27 21:10:35.549252602 +0100
@@ -342,7 +342,7 @@
endif()
add_library(
- crypto
+ boringssl_crypto
${CRYPTO_ARCH_SOURCES}
err_data.c
@@ -577,8 +577,10 @@
src/crypto/x509v3/v3_utl.c
)
+set_target_properties(boringssl_crypto PROPERTIES SOVERSION 1)
+
add_library(
- ssl
+ boringssl_ssl
src/ssl/bio_ssl.cc
src/ssl/d1_both.cc
@@ -618,6 +620,8 @@
src/ssl/tls_record.cc
)
+set_target_properties(boringssl_ssl PROPERTIES SOVERSION 1)
+
add_executable(
bssl
@@ -639,10 +643,10 @@
src/tool/transport_common.cc
)
-target_link_libraries(bssl ssl crypto)
+target_link_libraries(bssl boringssl_ssl boringssl_crypto)
if(NOT WIN32 AND NOT ANDROID)
- target_link_libraries(crypto pthread)
+ target_link_libraries(boringssl_crypto pthread)
endif()
if(WIN32)