Enclave.cpp 163 B

123456789
  1. #include <cstring>
  2. #include "Enclave_t.h"
  3. void ecall_hello_enclave(char *buf, size_t len)
  4. {
  5. strncpy(buf, "Hello, enclave!", len-1);
  6. buf[len-1] = '\0';
  7. }