xref: /freebsd/crypto/openssl/doc/man3/EVP_CIPHER_CTX_get_app_data.pod (revision f25b8c9fb4f58cf61adb47d7570abe7caa6d385d)
1=pod
2
3=head1 NAME
4
5EVP_CIPHER_CTX_get_app_data, EVP_CIPHER_CTX_set_app_data - Routines to
6inspect and modify application data related to EVP_CIPHER_CTX
7
8=head1 SYNOPSIS
9
10 #include <openssl/evp.h>
11
12 void *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);
13 void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);
14
15=head1 DESCRIPTION
16
17The functions EVP_CIPHER_CTX_set_app_data() and EVP_CIPHER_CTX_get_app_data()
18associate an opaque, application-defined pointer with an EVP_CIPHER_CTX object.
19
20This pointer is not interpreted by the library and is reserved entirely for use
21by the application. It may be used to store arbitrary context or state that
22needs to be accessible wherever the corresponding EVP_CIPHER_CTX is available.
23
24=head1 RETURN VALUES
25
26The EVP_CIPHER_CTX_get_app_data() function returns a opaque pointer to the
27current application data for the EVP_CIPHER_CTX.
28
29=head1 COPYRIGHT
30
31Copyright 2026 The OpenSSL Project Authors. All Rights Reserved.
32
33Licensed under the Apache License 2.0 (the "License").  You may not use
34this file except in compliance with the License.  You can obtain a copy
35in the file LICENSE in the source distribution or at
36L<https://www.openssl.org/source/license.html>.
37
38=cut
39