Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
a734cd36
Unverified
Commit
a734cd36
authored
Feb 29, 2020
by
Stan Kladko
Committed by
GitHub
Feb 29, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #57 from skalenetwork/SKALE-2298
Skale 2298 Added printf
parents
43911195
8694c15e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
oc_alloc.c
oc_alloc.c
+9
-0
secure_enclave.c
secure_enclave/secure_enclave.c
+1
-0
secure_enclave.edl
secure_enclave/secure_enclave.edl
+1
-1
No files found.
oc_alloc.c
View file @
a734cd36
...
...
@@ -42,6 +42,15 @@ uint64_t oc_realloc (void *optr, size_t osz, size_t nsz)
return
(
uint64_t
)
nptr
;
}
void
oc_printf
(
const
char
*
str
)
{
/* Proxy/Bridge will check the length and null-terminate
* the input string to prevent buffer overflow.
* */
fprintf
(
stderr
,
"***ENCLAVE_LOG***: %s"
,
str
);
}
void
oc_free
(
void
*
ptr
,
size_t
sz
)
{
free
(
ptr
);
...
...
secure_enclave/secure_enclave.c
View file @
a734cd36
...
...
@@ -73,6 +73,7 @@ void free_function(void *, size_t);
void
tgmp_init
()
{
oc_printf
(
"Initing tgmp library
\n
"
);
oc_realloc_func
=
&
reallocate_function
;
oc_free_func
=
&
free_function
;
...
...
secure_enclave/secure_enclave.edl
View file @
a734cd36
...
...
@@ -314,7 +314,7 @@ enclave {
include "gmp.h"
uint64_t oc_realloc([user_check] void *optr, size_t osz, size_t nsz);
void oc_printf([in, string] const char *str);
void oc_free([user_check] void *optr, size_t sz);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment