Allow FUSE mount helper without OpenSSL
ober
acc00508dc98c8c9506d97fdcfe68c69e121d5ba
--- a/src/mount_helper.c +++ b/src/mount_helper.c @@ -43,8 +43,10 @@ #include <sys/wait.h> #include <sys/types.h> +#ifndef JERBOA_FUSE_NO_OPENSSL #include <openssl/evp.h> #include <openssl/rand.h> +#endif #ifndef O_CLOEXEC #define O_CLOEXEC 0 @@ -231,6 +233,8 @@ int jerboa_fuse_secmem_copy_out_checked(unsigned char *dst, const void *src, * Vault crypto wrappers * ==================================================================== */ +#ifndef JERBOA_FUSE_NO_OPENSSL + int jerboa_fuse_rand_bytes(unsigned char *out, int len) { if ((!out && len > 0) || len < 0) { errno = EINVAL; @@ -346,6 +350,8 @@ done: return ok; } +#endif /* JERBOA_FUSE_NO_OPENSSL */ + /* ==================================================================== * Process tree inspection * ==================================================================== */