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

Unified Diff: src/trusted/desc/nacl_desc_wrapper.cc

Issue 550523002: Remove the old "SecureRandom" service, formerly used by get_random_bytes() (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 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
« no previous file with comments | « src/trusted/desc/nacl_desc_wrapper.h ('k') | src/trusted/service_runtime/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/desc/nacl_desc_wrapper.cc
diff --git a/src/trusted/desc/nacl_desc_wrapper.cc b/src/trusted/desc/nacl_desc_wrapper.cc
index 950b6719865dd07a279faf963ce8a376d9f9fc23..724eb6be03eede32ae4153fcce0600c41814f140 100644
--- a/src/trusted/desc/nacl_desc_wrapper.cc
+++ b/src/trusted/desc/nacl_desc_wrapper.cc
@@ -18,7 +18,6 @@
#include "native_client/src/trusted/desc/nacl_desc_invalid.h"
#include "native_client/src/trusted/desc/nacl_desc_io.h"
#include "native_client/src/trusted/desc/nacl_desc_quota.h"
-#include "native_client/src/trusted/desc/nacl_desc_rng.h"
#include "native_client/src/trusted/desc/nacl_desc_sync_socket.h"
#include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
#include "native_client/src/trusted/desc/nrd_xfer.h"
@@ -306,20 +305,6 @@ DescWrapper* DescWrapperFactory::OpenHostFileQuota(const char* fname,
return MakeGenericCleanup(desc_quota);
}
-DescWrapper* DescWrapperFactory::OpenRng() {
- struct NaClDescRng* nhrp =
- reinterpret_cast<struct NaClDescRng*>(calloc(1, sizeof(*nhrp)));
- if (NULL == nhrp) {
- return NULL;
- }
- if (!NaClDescRngCtor(nhrp)) {
- free(nhrp);
- return NULL;
- }
-
- return MakeGenericCleanup(reinterpret_cast<struct NaClDesc*>(nhrp));
-}
-
DescWrapper* DescWrapperFactory::MakeInvalid() {
struct NaClDescInvalid *desc =
const_cast<NaClDescInvalid*>(NaClDescInvalidMake());
« no previous file with comments | « src/trusted/desc/nacl_desc_wrapper.h ('k') | src/trusted/service_runtime/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698