libssh2_init(3)

libssh2_init3

Global library initialization

Usage

#include <libssh2.h>
#define LIBSSH2_INIT_NO_CRYPTO 0x0001
int
libssh2_init(int flags);

Overview

Initialize the libssh2 functions. This typically initialize the crypto library. It uses a global state, and is not thread safe -- you must make sure this function is not called concurrently.

Return value

Returns 0 if succeeded, or a negative value for error.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0–12
  2. 13–Arch

Availability

Added in libssh2 1.2.5

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.