void aws_nitro_enclaves_library_init()

in source/nitro_enclaves.c [31:49]


void aws_nitro_enclaves_library_init(struct aws_allocator *allocator) {
    if (s_library_initialized) {
        return;
    }

    if (allocator == NULL) {
        s_aws_ne_allocator = aws_default_allocator();
    } else {
        s_aws_ne_allocator = allocator;
    }

    AWS_FATAL_ASSERT(s_aws_ne_allocator != NULL);

    s_library_initialized = true;

    aws_auth_library_init(s_aws_ne_allocator);
    aws_http_library_init(s_aws_ne_allocator);
    /* TODO: Initialize NSM */
}