MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / InjectEntropy

Function InjectEntropy

src/SSL.c:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static void InjectEntropy(SSLContext* ctx) {
112 char buf[32];
113 cc_result res = Platform_GetEntropy(buf, 32);
114 if (res) Platform_LogConst("SSL: Using insecure uninitialised stack data for entropy");
115
116 br_ssl_engine_inject_entropy(&ctx->sc.eng, buf, 32);
117}
118
119static int ssl_time_check_callback(void* ctx,
120 uint32_t not_before_days, uint32_t not_before_secs,

Callers 1

SSL_InitFunction · 0.85

Calls 2

Platform_LogConstFunction · 0.85
Platform_GetEntropyFunction · 0.70

Tested by

no test coverage detected