mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-22 11:53:07 -05:00
Rename product, namespaces, libraries, paths, and assets from Orion/orion to Onion/onion across the tree. TCP stack-shutdown magic is now ONIO (0x4F4E494F) to match the corrected branding.
24 lines
794 B
C
24 lines
794 B
C
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int onion_test_write_temp_file(const char *suffix, const void *data, size_t len,
|
|
char *path_out, size_t path_out_size);
|
|
int onion_test_write_temp_text_file(const char *suffix, const char *text,
|
|
char *path_out, size_t path_out_size);
|
|
/** Encrypt XML as MC4 (Base64 + AES-256-CBC), write temp .mc4. */
|
|
int onion_test_write_temp_mc4_file(const char *xml, char *path_out,
|
|
size_t path_out_size);
|
|
void onion_test_remove_file(const char *path);
|
|
|
|
/** Resolve fixture path under tests/fixtures (cwd or ONION_TEST_ROOT). */
|
|
int onion_test_fixture_path(const char *rel, char *out, size_t out_size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|