OSSL_sleep(3ssl)

OSSL_sleep3ssl

Delay execution for a specified number of milliseconds

Usage

 #include <openssl/crypto.h>
 void OSSL_sleep(uint64_t millis);

Overview

OSSL_sleep() is a convenience function to delay execution of the calling thread for (at least) millis milliseconds. The delay is not guaranteed; it may be affected by system activity, by the time spent processing the call, limitation on the underlying system call parameter size or by system timer granularity.

In particular on Windows the maximum amount of time it will sleep is 49 days and on systems where the regular sleep(3) is used as the underlying system call the maximum sleep time is about 136 years.

Return values

OSSL_sleep() does not return any value.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

History

OSSL_sleep() was added in OpenSSL 3.2.

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.