deps/libssh-0.6.3/src/init.c
int ssh_init(void) {
  if(ssh_threads_init())
    return -1;
  if(ssh_crypto_init())
    return -1;
  if(ssh_socket_init())
    return -1;
  return 0;
}
/**
 * @brief Initialize global cryptographic data structures.
 *
 * This function should only be called once, at the beginning of the program, in
 * the main thread. It may be omitted if your program is not multithreaded.
 *
 * @returns             0 on success, -1 if an error occured.
 */
@brief Initialize global cryptographic data structures.
This function should only be called once, at the beginning of the program, in
the main thread. It may be omitted if your program is not multithreaded.

@returns             0 on success, -1 if an error occured.
@brief Initialize global cryptographic data structures . This function should only be called once at the beginning of the program in the main thread . It may be omitted if your program is not multithreaded . @returns 0 on success - 1 if an error occured .
int ssh_init(void) {
  if(ssh_threads_init())
    return -1;
  if(ssh_crypto_init())
    return -1;
  if(ssh_socket_init())
    return -1;
  return 0;
}
int ssh_init ( void ) { if ( ssh_threads_init ( ) ) return -1 ; if ( ssh_crypto_init ( ) ) return -1 ; if ( ssh_socket_init ( ) ) return -1 ; return 0 ; }
@brief Initialize global cryptographic data structures.
@brief Initialize global cryptographic data structures .