diff options
Diffstat (limited to 'upstream/debian-unstable/man3/BIO_set_callback.3ssl')
-rw-r--r-- | upstream/debian-unstable/man3/BIO_set_callback.3ssl | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/upstream/debian-unstable/man3/BIO_set_callback.3ssl b/upstream/debian-unstable/man3/BIO_set_callback.3ssl index 5100df8a..df24801a 100644 --- a/upstream/debian-unstable/man3/BIO_set_callback.3ssl +++ b/upstream/debian-unstable/man3/BIO_set_callback.3ssl @@ -55,7 +55,7 @@ .\" ======================================================================== .\" .IX Title "BIO_SET_CALLBACK 3SSL" -.TH BIO_SET_CALLBACK 3SSL 2024-02-03 3.1.5 OpenSSL +.TH BIO_SET_CALLBACK 3SSL 2024-04-04 3.2.2-dev OpenSSL .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -95,6 +95,13 @@ see \fBopenssl_user_macros\fR\|(7): \& BIO_callback_fn BIO_get_callback(const BIO *b); \& long BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, \& long argl, long ret); +\& +\& typedef struct bio_mmsg_cb_args_st { +\& BIO_MSG *msg; +\& size_t stride, num_msg; +\& uint64_t flags; +\& size_t *msgs_processed; +\& } BIO_MMSG_CB_ARGS; .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" @@ -303,6 +310,40 @@ after. Note: \fBcmd\fR == \fBBIO_CTRL_SET_CALLBACK\fR is special, because \fBparg\fR is not the argument of type \fBBIO_info_cb\fR itself. In this case \fBparg\fR is a pointer to the actual call parameter, see \fBBIO_callback_ctrl\fR. +.IP "\fBBIO_sendmmsg(BIO *b, BIO_MSG *msg, size_t stride, size_t num_msg, uint64_t flags, size_t *msgs_processed)\fR" 4 +.IX Item "BIO_sendmmsg(BIO *b, BIO_MSG *msg, size_t stride, size_t num_msg, uint64_t flags, size_t *msgs_processed)" +.Vb 1 +\& callback_ex(b, BIO_CB_SENDMMSG, args, 0, 0, 0, 1, NULL) +.Ve +.Sp +or +.Sp +.Vb 1 +\& callback(b, BIO_CB_SENDMMSG, args, 0, 0, 1) +.Ve +.Sp +is called before the call and +.Sp +.Vb 1 +\& callback_ex(b, BIO_CB_SENDMMSG | BIO_CB_RETURN, args, ret, 0, 0, ret, NULL) +.Ve +.Sp +or +.Sp +.Vb 1 +\& callback(b, BIO_CB_SENDMMSG | BIO_CB_RETURN, args, ret, 0, 0, ret) +.Ve +.Sp +after. +.Sp +\&\fBargs\fR is a pointer to a \fBBIO_MMSG_CB_ARGS\fR structure containing the arguments +passed to \fBBIO_sendmmsg()\fR. \fBret\fR is the return value of the \fBBIO_sendmmsg()\fR call. +The return value of \fBBIO_sendmmsg()\fR is altered to the value returned by the +\&\fBBIO_CB_SENDMMSG | BIO_CB_RETURN\fR call. +.IP "\fBBIO_recvmmsg(BIO *b, BIO_MSG *msg, size_t stride, size_t num_msg, uint64_t flags, size_t *msgs_processed)\fR" 4 +.IX Item "BIO_recvmmsg(BIO *b, BIO_MSG *msg, size_t stride, size_t num_msg, uint64_t flags, size_t *msgs_processed)" +See the documentation for \fBBIO_sendmmsg()\fR. \fBBIO_recvmmsg()\fR works identically +except that \fBBIO_CB_RECVMMSG\fR is used instead of \fBBIO_CB_SENDMMSG\fR. .SH "RETURN VALUES" .IX Header "RETURN VALUES" \&\fBBIO_get_callback_ex()\fR and \fBBIO_get_callback()\fR return the callback function @@ -326,7 +367,7 @@ The \fBBIO_debug_callback_ex()\fR function was added in OpenSSL 3.0. deprecated in OpenSSL 3.0. Use the non-deprecated _ex functions instead. .SH COPYRIGHT .IX Header "COPYRIGHT" -Copyright 2000\-2021 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2000\-2023 The OpenSSL Project Authors. All Rights Reserved. .PP Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy |