thrift: null-terminate certificates in samples and tests
The thrift methods loadCertificateFromBuffer(), loadPrivateKeyFromBuffer(), and loadTrustedCertificatesFromBuffer() expect a null-terminated string. Append '\0' to each array used to hold a certificate in thrift samples and tests. Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
parent
2fef763ff4
commit
218f787e26
3 changed files with 8 additions and 0 deletions
|
@ -29,9 +29,11 @@ ctx context;
|
|||
static K_THREAD_STACK_DEFINE(ThriftTest_server_stack, CONFIG_THRIFTTEST_SERVER_STACK_SIZE);
|
||||
static const char cert_pem[] = {
|
||||
#include "qemu_cert.pem.inc"
|
||||
'\0'
|
||||
};
|
||||
static const char key_pem[] = {
|
||||
#include "qemu_key.pem.inc"
|
||||
'\0'
|
||||
};
|
||||
|
||||
static void *server_func(void *arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue