File 1323-Remove-usages-of-or-in-public_key.patch of Package erlang

From 1db0dbda5c0f5efbbe95a9b011436ded7e036c4e Mon Sep 17 00:00:00 2001
From: Jan Uhlig <juhlig@hnc-agency.org>
Date: Mon, 18 Aug 2025 19:42:16 +0200
Subject: [PATCH] Remove usages of or in public_key

---
 lib/public_key/src/public_key.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl
index 922d4d51c4..78bd6feb88 100644
--- a/lib/public_key/src/public_key.erl
+++ b/lib/public_key/src/public_key.erl
@@ -465,7 +465,7 @@ pem_entry_decode({Asn1Type, CryptDer, {Cipher, Salt}} = PemEntry,
 				is_binary(CryptDer) andalso
 				is_list(Cipher) andalso
 				is_binary(Salt) andalso
-				((erlang:byte_size(Salt) == 8) or (erlang:byte_size(Salt) == 16)) andalso
+				((erlang:byte_size(Salt) == 8) orelse (erlang:byte_size(Salt) == 16)) andalso
 				is_list(Password) ->
     do_pem_entry_decode(PemEntry, Password).
 
@@ -543,7 +543,7 @@ pem_entry_encode(Asn1Type, Entity, {{Cipher, Salt} = CipherInfo,
 						    is_list(Password) andalso
 						    is_list(Cipher) andalso
 						    is_binary(Salt) andalso
-						    ((erlang:byte_size(Salt) == 8) or
+						    ((erlang:byte_size(Salt) == 8) orelse
 						     (erlang:byte_size(Salt) == 16)) ->
     do_pem_entry_encode(Asn1Type, Entity, CipherInfo, Password).
     
@@ -1733,7 +1733,7 @@ pkix_is_fixed_dh_cert(Cert) when is_binary(Cert) ->
 
 %% Description: Returns the issuer id.
 %%--------------------------------------------------------------------
-pkix_issuer_id(#'OTPCertificate'{} = OtpCert, Signed) when (Signed == self) or 
+pkix_issuer_id(#'OTPCertificate'{} = OtpCert, Signed) when (Signed == self) orelse 
 							   (Signed == other) ->
     pubkey_cert:issuer_id(OtpCert, Signed);
 pkix_issuer_id(Cert, Signed) when is_binary(Cert) -> 
-- 
2.43.0

openSUSE Build Service is sponsored by