Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1101)

Unified Diff: net/base/multi_threaded_cert_verifier.cc

Issue 10983023: Port certificate verification to iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/multi_threaded_cert_verifier.cc
diff --git a/net/base/multi_threaded_cert_verifier.cc b/net/base/multi_threaded_cert_verifier.cc
index 63d320ea27bef97c073269c912ea8a5ce74f7bff..46a9e9be2d45a220e2058f66952f4c73af8d55f4 100644
--- a/net/base/multi_threaded_cert_verifier.cc
+++ b/net/base/multi_threaded_cert_verifier.cc
@@ -22,7 +22,7 @@
#include "net/base/x509_certificate.h"
#include "net/base/x509_certificate_net_log_param.h"
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
#include <private/pprthred.h> // PR_DetachThread
#endif
@@ -224,7 +224,7 @@ class CertVerifierWorker {
// Runs on a worker thread.
error_ = verify_proc_->Verify(cert_, hostname_, flags_, crl_set_,
&verify_result_);
-#if defined(USE_NSS)
+#if defined(USE_NSS) || defined(OS_IOS)
// Detach the thread from NSPR.
// Calling NSS functions attaches the thread to NSPR, which stores
// the NSPR thread ID in thread-specific data.

Powered by Google App Engine
This is Rietveld 408576698