summaryrefslogtreecommitdiffstats
path: root/doc/internal
diff options
context:
space:
mode:
authorPaul Yang <yang.yang@baishancloud.com>2019-02-26 13:11:10 +0800
committerPaul Yang <yang.yang@baishancloud.com>2019-02-28 21:38:19 +0800
commit4564e77ae9dd1866e8a033f03511b6a1792c024e (patch)
tree7cf8a73e48bbc158e8ba7d433f04d3709b4ce562 /doc/internal
parent69f6b3ceaba493e70e1296880ea6c93e40714f0f (diff)
Place return values after examples in doc
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8338)
Diffstat (limited to 'doc/internal')
-rw-r--r--doc/internal/man3/openssl_ctx_get_data.pod16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/internal/man3/openssl_ctx_get_data.pod b/doc/internal/man3/openssl_ctx_get_data.pod
index ee98dc2733..db066ad9b6 100644
--- a/doc/internal/man3/openssl_ctx_get_data.pod
+++ b/doc/internal/man3/openssl_ctx_get_data.pod
@@ -39,6 +39,14 @@ context is freed.
openssl_ctx_get_data() is used to retrieve a pointer to the data in
the library context C<ctx> associated with the given C<index>.
+=head1 RETURN VALUES
+
+openssl_ctx_new_index() returns -1 on error, otherwise the allocated
+index number.
+
+openssl_ctx_get_data() returns a pointer on success, or C<NULL> on
+failure.
+
=head1 EXAMPLES
=head2 Initialization
@@ -88,14 +96,6 @@ To get and use the data stored in the library context, simply do this:
*/
FOO *data = openssl_ctx_get_data(ctx, foo_index);
-=head1 RETURN VALUES
-
-openssl_ctx_new_index() returns -1 on error, otherwise the allocated
-index number.
-
-openssl_ctx_get_data() returns a pointer on success, or C<NULL> on
-failure.
-
=head1 SEE ALSO
L<OPENSSL_CTX(3)>