Skip to content

Commit 43ee65f

Browse files
committed
Initialize OpenSSL in openssl_init
Ensures that the OpenSSL library, if used, is initialized by that point.
1 parent 03da362 commit 43ee65f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libgit2-sys/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,8 @@ pub type git_packbuilder_foreach_cb = extern fn(*const c_void, size_t,
13061306
/// Initialize openssl for the libgit2 library
13071307
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), feature = "https"))]
13081308
pub fn openssl_init() {
1309+
openssl::init();
1310+
13091311
if !cfg!(target_os = "linux") && !cfg!(target_os = "freebsd") { return }
13101312

13111313
// Currently, libgit2 leverages OpenSSL for SSL support when cloning

0 commit comments

Comments
 (0)