From: Jon Spillett Date: Tue, 28 Mar 2017 06:22:07 +0000 (+1000) Subject: Add documentation for SSL_*_ex_data() functions X-Git-Tag: OpenSSL_1_1_1-pre1~1934 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=09fdfa4b2fe4c9770c27cd523a5bf55b1d50eac9;p=oweals%2Fopenssl.git Add documentation for SSL_*_ex_data() functions [skip ci] Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3050) --- diff --git a/doc/man3/SSL_CTX_set_ex_data.pod b/doc/man3/SSL_CTX_set_ex_data.pod new file mode 100644 index 0000000000..cb88ea0ca5 --- /dev/null +++ b/doc/man3/SSL_CTX_set_ex_data.pod @@ -0,0 +1,57 @@ +=pod + +=head1 NAME + +SSL_CTX_get_ex_data, SSL_CTX_set_ex_data, +SSL_get_ex_data, SSL_set_ex_data, +SSL_SESSION_get_ex_data, SSL_SESSION_set_ex_data +- Store and retrieve extra data from the SSL_CTX, SSL or SSL_SESSION + +=head1 SYNOPSIS + + #include + + void *SSL_CTX_get_ex_data(const SSL_CTX *s, int idx); + + int SSL_CTX_set_ex_data(SSL_CTX *s, int idx, void *arg); + + void *SSL_get_ex_data(const SSL *s, int idx); + + int SSL_set_ex_data(SSL *s, int idx, void *arg); + + int SSL_SESSION_set_ex_data(SSL_SESSION *s, int idx, void *arg); + + void *SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx); + +=head1 DESCRIPTION + +SSL*_set_ex_data() functions can be used to store arbitrary user data into the +B, B or B. The user must supply a unique index +which they can subsequently use to retrieve the data using SSL*_get_ex_data(). + +For more detailed information see L and +L which implement these functions and +L for generating a unique index. + +=head1 RETURN VALUES + +The SSL*_set_ex_data() functions return 1 if the item is successfully stored +and 0 if it is not. +The SSL*_get_ex_data() functions return the ex_data pointer if successful, +otherwise NULL. + +=head1 SEE ALSO + +L, L, +L + +=head1 COPYRIGHT + +Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the OpenSSL license (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L. + +=cut