diff options
Diffstat (limited to 'devel/electron33/files/patch-components_os__crypt_sync_os__crypt.h')
-rw-r--r-- | devel/electron33/files/patch-components_os__crypt_sync_os__crypt.h | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/devel/electron33/files/patch-components_os__crypt_sync_os__crypt.h b/devel/electron33/files/patch-components_os__crypt_sync_os__crypt.h deleted file mode 100644 index 77d85a836f08..000000000000 --- a/devel/electron33/files/patch-components_os__crypt_sync_os__crypt.h +++ /dev/null @@ -1,72 +0,0 @@ ---- components/os_crypt/sync/os_crypt.h.orig 2024-10-16 21:31:11 UTC -+++ components/os_crypt/sync/os_crypt.h -@@ -14,7 +14,7 @@ - #include "build/build_config.h" - #include "build/chromecast_buildflags.h" - --#if BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - class KeyStorageLinux; - #endif // BUILDFLAG(IS_LINUX) - -@@ -23,7 +23,7 @@ class PrefService; - class PrefService; - #endif // BUILDFLAG(IS_WIN) - --#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_APPLE) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - namespace crypto { - class SymmetricKey; - } -@@ -36,7 +36,7 @@ namespace OSCrypt { - // Temporary interface due to OSCrypt refactor. See OSCryptImpl for descriptions - // of what each function does. - namespace OSCrypt { --#if BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - COMPONENT_EXPORT(OS_CRYPT) - void SetConfig(std::unique_ptr<os_crypt::Config> config); - #endif // BUILDFLAG(IS_LINUX) -@@ -81,7 +81,7 @@ COMPONENT_EXPORT(OS_CRYPT) void ResetStateForTesting() - COMPONENT_EXPORT(OS_CRYPT) void SetLegacyEncryptionForTesting(bool legacy); - COMPONENT_EXPORT(OS_CRYPT) void ResetStateForTesting(); - #endif // BUILDFLAG(IS_WIN) --#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS)) -+#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS)) || BUILDFLAG(IS_BSD) - COMPONENT_EXPORT(OS_CRYPT) - void UseMockKeyStorageForTesting( - base::OnceCallback<std::unique_ptr<KeyStorageLinux>()> -@@ -108,7 +108,7 @@ class COMPONENT_EXPORT(OS_CRYPT) OSCryptImpl { - // Returns singleton instance of OSCryptImpl. - static OSCryptImpl* GetInstance(); - --#if BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - // Set the configuration of OSCryptImpl. - // This method, or SetRawEncryptionKey(), must be called before using - // EncryptString() and DecryptString(). -@@ -200,7 +200,7 @@ class COMPONENT_EXPORT(OS_CRYPT) OSCryptImpl { - void ResetStateForTesting(); - #endif - --#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS)) -+#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS)) || BUILDFLAG(IS_BSD) - // For unit testing purposes, inject methods to be used. - // |storage_provider_factory| provides the desired |KeyStorage| - // implementation. If the provider returns |nullptr|, a hardcoded password -@@ -225,13 +225,13 @@ class COMPONENT_EXPORT(OS_CRYPT) OSCryptImpl { - crypto::SymmetricKey* GetEncryptionKey(); - #endif // BUILDFLAG(IS_APPLE) - --#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_APPLE) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - // This lock is used to make the GetEncryptionKey and - // GetRawEncryptionKey methods thread-safe. - static base::Lock& GetLock(); - #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_APPLE) - --#if BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - // Returns a cached string of "peanuts". Is thread-safe. - crypto::SymmetricKey* GetPasswordV10(); - |