Skip to content

Commit 536c892

Browse files
committed
Fixo
1 parent c66b5b7 commit 536c892

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/info.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ SEXP R_openssl_config(void) {
3434
}
3535

3636
SEXP R_openssl_fips_mode(void){
37-
#if OPENSSL_VERSION_MAJOR < 3
37+
#ifdef LIBRESSL_VERSION_NUMBER
38+
int enabled = 0;
39+
#elif OPENSSL_VERSION_MAJOR < 3
3840
int enabled = FIPS_mode();
3941
#else
4042
int enabled = EVP_default_properties_is_fips_enabled(NULL);

0 commit comments

Comments
 (0)