From f3031d6cd0d12dc9a52e709848eebc803439a803 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Wed, 30 Apr 2025 14:09:11 -0500 Subject: [PATCH] add bcrypt as windows dependency --- meson.build | 1 + source/qjs_crypto.c | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/meson.build b/meson.build index 97ee7274..99563bee 100644 --- a/meson.build +++ b/meson.build @@ -98,6 +98,7 @@ if host_machine.system() == 'windows' deps += cc.find_library('imm32') deps += cc.find_library('version') deps += cc.find_library('cfgmgr32') + deps += cc.find_library('bcrypt') sdl3_opts.add_cmake_defines({'HAVE_ISINF': '1'}) # Hack for MSYS2 link += '-static' endif diff --git a/source/qjs_crypto.c b/source/qjs_crypto.c index f9cf79f1..48ae5902 100644 --- a/source/qjs_crypto.c +++ b/source/qjs_crypto.c @@ -6,20 +6,6 @@ #include "monocypher.h" -// randombytes.c - Minimal cross-platform CSPRNG shim (single file) -/* - Usage: - #include "randombytes.c" - - int main() { - uint8_t buffer[32]; - if (randombytes(buffer, sizeof(buffer)) != 0) { - // handle error - } - // buffer now has 32 cryptographically secure random bytes - } -*/ - #include #include