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

Unified Diff: src/trusted/service_runtime/name_service/default_name_service.c

Issue 7108031: this patch adds the manifest proxy server to sel_ldr and the manifest (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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: src/trusted/service_runtime/name_service/default_name_service.c
===================================================================
--- src/trusted/service_runtime/name_service/default_name_service.c (revision 5616)
+++ src/trusted/service_runtime/name_service/default_name_service.c (working copy)
@@ -6,14 +6,17 @@
#include "native_client/src/trusted/service_runtime/name_service/default_name_service.h"
+#include "native_client/src/shared/platform/nacl_log.h"
+#include "native_client/src/trusted/desc/nacl_desc_rng.h"
+#include "native_client/src/trusted/manifest_name_service_proxy/manifest_proxy.h"
#include "native_client/src/trusted/service_runtime/include/sys/fcntl.h"
-#include "native_client/src/trusted/desc/nacl_desc_rng.h"
+#include "native_client/src/trusted/service_runtime/sel_ldr_thread_interface.h"
int NaClDefaultNameServiceInit(struct NaClNameService *ns) {
/*
* Create an CSPRNG and enter it into the name server.
*/
- struct NaClDescRng *rng = NULL;
+ struct NaClDescRng *rng = NULL;
rng = (struct NaClDescRng *) malloc(sizeof *rng);
if (NULL == rng) {
@@ -34,7 +37,7 @@
CreateDescEntry)(ns,
"SecureRandom", NACL_ABI_O_RDWR,
(struct NaClDesc *) rng);
- NaClDescUnref((struct NaClDesc *) rng);
+ rng = NULL;
return 1;

Powered by Google App Engine
This is Rietveld 408576698