OpenBSD manual page server

Manual Page Search Parameters

BIO_PRINTF(3) Library Functions Manual BIO_PRINTF(3)

BIO_printf, BIO_vprintf, BIO_snprintf, BIO_vsnprintfformatted output to a BIO

#include <openssl/bio.h>

int
BIO_printf(BIO *bio, const char *format, ...);

int
BIO_vprintf(BIO *bio, const char *format, va_list args);

int
BIO_snprintf(char *buf, size_t n, const char *format, ...);

int
BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);

() is a wrapper around vfprintf(3), sending the output to the specified bio.

() is a wrapper around BIO_vprintf().

() and () are wrappers around vsnprintf(3).

These functions return the number of bytes written, or -1 if an error occurs.

In contrast to snprintf(3) and vsnprintf(3), BIO_snprintf() and BIO_vsnprintf() also return -1 if n is too small to hold the complete output.

BIO_new(3)

BIO_printf() first appeared in SSLeay 0.6.5 and has been available since OpenBSD 2.4.

BIO_vprintf(), BIO_snprintf(), and BIO_vsnprintf() first appeared in OpenSSL 0.9.6 and have been available since OpenBSD 2.9.

March 22, 2018 OpenBSD-6.3