提交 9adfac24 编写于 作者: jia zhang's avatar jia zhang

rune/libenclave: Fix returning error values for skeleton

Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 3ff6d4ec
......@@ -247,16 +247,16 @@ int pal_init(const char *args, const char *log_level)
void *bin;
if (!encl_data_map(IMAGE, &bin, &bin_size))
return ENOENT;
return -ENOENT;
if (!load_sigstruct(SIGSTRUCT, &sigstruct))
return ENOENT;
return -ENOENT;
if (!load_token(TOKEN, &token))
return ENOENT;
return -ENOENT;
if (!encl_build(&secs, bin, bin_size, &sigstruct, &token))
return EINVAL;
return -EINVAL;
initialized = true;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册