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

Unified Diff: content/renderer/webcrypto_impl_openssl.cc

Issue 19757011: WebCrypto: Implement digest() using NSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak of hash context. Created 7 years, 4 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: content/renderer/webcrypto_impl_openssl.cc
diff --git a/content/renderer/webcrypto_impl_openssl.cc b/content/renderer/webcrypto_impl_openssl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b9e0814aa7f808046d19606106b3ec07fc4f168b
--- /dev/null
+++ b/content/renderer/webcrypto_impl_openssl.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/webcrypto_impl.h"
+
+namespace content {
+
+void WebCryptoImpl::digest(
+ const WebKit::WebCryptoAlgorithm& algorithm,
+ const unsigned char* data,
+ size_t data_size,
+ WebKit::WebCryptoResult result) {
+ // TODO(bryaneyler): Placeholder for OpenSSL implementation. Issue 267888.
+ (void)algorithm;
eroman 2013/08/22 23:15:12 What is the purpose of these (void)? If you are g
Bryan Eyler 2013/08/23 01:22:11 This was more just preemptive to avoid a compiler
jamesr 2013/08/23 01:27:40 I don't think we generate such warnings. Just remo
+ (void)data;
+ (void)data_size;
+ result.completeWithError();
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698