Guard GCrypt-specific code with USE(GCRYPT) instead of PLATFORM macros
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Oct 2019 02:47:23 +0000 (02:47 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Oct 2019 02:47:23 +0000 (02:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=202829

Reviewed by Jiewen Tan.

* crypto/keys/CryptoKeyEC.h:
* crypto/keys/CryptoKeyRSA.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@251000 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/crypto/keys/CryptoKeyEC.h
Source/WebCore/crypto/keys/CryptoKeyRSA.h

index e235154..f3f0780 100644 (file)
@@ -1,3 +1,13 @@
+2019-10-10  Konstantin Tokarev  <annulen@yandex.ru>
+
+        Guard GCrypt-specific code with USE(GCRYPT) instead of PLATFORM macros
+        https://bugs.webkit.org/show_bug.cgi?id=202829
+
+        Reviewed by Jiewen Tan.
+
+        * crypto/keys/CryptoKeyEC.h:
+        * crypto/keys/CryptoKeyRSA.h:
+
 2019-10-10  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: use more C++ keywords for defining agents
index 4203da6..3647134 100644 (file)
@@ -43,7 +43,7 @@ struct CCECCryptorRefDeleter {
 typedef std::unique_ptr<typename std::remove_pointer<CCECCryptorRef>::type, WebCore::CCECCryptorRefDeleter> PlatformECKeyContainer;
 #endif
 
-#if PLATFORM(GTK) || PLATFORM(WPE)
+#if USE(GCRYPT)
 #include <pal/crypto/gcrypt/Handle.h>
 
 typedef gcry_sexp_t PlatformECKey;
index e548673..78f0266 100644 (file)
@@ -43,7 +43,7 @@ struct CCRSACryptorRefDeleter {
 typedef std::unique_ptr<typename std::remove_pointer<CCRSACryptorRef>::type, WebCore::CCRSACryptorRefDeleter> PlatformRSAKeyContainer;
 #endif
 
-#if PLATFORM(GTK) || PLATFORM(WPE)
+#if USE(GCRYPT)
 #include <pal/crypto/gcrypt/Handle.h>
 
 typedef gcry_sexp_t PlatformRSAKey;