We called kr_crypto_init() just before forking and then _reinit() in
all children, but we never did any cryptography in-between - better
initialize after forking.
Note: the function is KR_EXPORT. It might not be useful anymore, but
its removal would require bumping libkres soname.
array_clear(*ipc_set);
array_push(*ipc_set, sv[0]);
close(sv[1]);
- kr_crypto_reinit();
return forks;
/* Parent process */
} else {
}
#endif
- kr_crypto_init();
-
/* Connect forks with local socket */
fd_array_t ipc_set;
array_init(ipc_set);
return EXIT_FAILURE;
}
+ kr_crypto_init();
+
/* Create a server engine. */
knot_mm_t pool = {
.ctx = mp_new (4096),