2015-07-21 22:06:03 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
BIO_get_ex_new_index, BIO_set_ex_data, BIO_get_ex_data,
|
2019-10-19 00:24:39 +08:00
|
|
|
BIO_set_app_data, BIO_get_app_data,
|
2015-07-21 22:06:03 +08:00
|
|
|
DH_get_ex_new_index, DH_set_ex_data, DH_get_ex_data,
|
|
|
|
DSA_get_ex_new_index, DSA_set_ex_data, DSA_get_ex_data,
|
2017-10-20 21:41:43 +08:00
|
|
|
EC_KEY_get_ex_new_index, EC_KEY_set_ex_data, EC_KEY_get_ex_data,
|
2019-10-19 00:24:39 +08:00
|
|
|
ENGINE_get_ex_new_index, ENGINE_set_ex_data, ENGINE_get_ex_data,
|
2020-04-07 08:18:09 +08:00
|
|
|
EVP_PKEY_get_ex_new_index, EVP_PKEY_set_ex_data, EVP_PKEY_get_ex_data,
|
2019-10-19 00:24:39 +08:00
|
|
|
RSA_get_ex_new_index, RSA_set_ex_data, RSA_get_ex_data,
|
|
|
|
RSA_set_app_data, RSA_get_app_data,
|
|
|
|
SSL_get_ex_new_index, SSL_set_ex_data, SSL_get_ex_data,
|
|
|
|
SSL_set_app_data, SSL_get_app_data,
|
|
|
|
SSL_CTX_get_ex_new_index, SSL_CTX_set_ex_data, SSL_CTX_get_ex_data,
|
|
|
|
SSL_CTX_set_app_data, SSL_CTX_get_app_data,
|
|
|
|
SSL_SESSION_get_ex_new_index, SSL_SESSION_set_ex_data, SSL_SESSION_get_ex_data,
|
|
|
|
SSL_SESSION_set_app_data, SSL_SESSION_get_app_data,
|
|
|
|
UI_get_ex_new_index, UI_set_ex_data, UI_get_ex_data,
|
|
|
|
UI_set_app_data, UI_get_app_data,
|
|
|
|
X509_STORE_CTX_get_ex_new_index, X509_STORE_CTX_set_ex_data, X509_STORE_CTX_get_ex_data,
|
|
|
|
X509_STORE_CTX_set_app_data, X509_STORE_CTX_get_app_data,
|
|
|
|
X509_STORE_get_ex_new_index, X509_STORE_set_ex_data, X509_STORE_get_ex_data,
|
|
|
|
X509_get_ex_new_index, X509_set_ex_data, X509_get_ex_data
|
2015-07-21 22:06:03 +08:00
|
|
|
- application-specific data
|
|
|
|
|
2016-06-21 19:03:34 +08:00
|
|
|
=head1 SYNOPSIS
|
2015-07-21 22:06:03 +08:00
|
|
|
|
2019-09-29 23:10:59 +08:00
|
|
|
=for openssl generic
|
2016-11-11 16:33:09 +08:00
|
|
|
|
2015-07-21 22:06:03 +08:00
|
|
|
#include <openssl/x509.h>
|
|
|
|
|
2016-06-21 19:03:34 +08:00
|
|
|
int TYPE_get_ex_new_index(long argl, void *argp,
|
2017-01-21 02:58:49 +08:00
|
|
|
CRYPTO_EX_new *new_func,
|
|
|
|
CRYPTO_EX_dup *dup_func,
|
|
|
|
CRYPTO_EX_free *free_func);
|
2015-07-21 22:06:03 +08:00
|
|
|
|
2016-06-21 19:03:34 +08:00
|
|
|
int TYPE_set_ex_data(TYPE *d, int idx, void *arg);
|
2015-07-21 22:06:03 +08:00
|
|
|
|
2020-03-23 15:30:37 +08:00
|
|
|
void *TYPE_get_ex_data(const TYPE *d, int idx);
|
2015-07-21 22:06:03 +08:00
|
|
|
|
2019-10-19 00:24:39 +08:00
|
|
|
#define TYPE_set_app_data(TYPE *d, void *arg)
|
|
|
|
#define TYPE_get_app_data(TYPE *d)
|
|
|
|
|
2021-12-02 19:33:49 +08:00
|
|
|
The following functions have been deprecated since OpenSSL 3.0, and can be
|
|
|
|
hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
|
|
|
|
see L<openssl_user_macros(7)>:
|
2021-03-16 07:39:19 +08:00
|
|
|
|
|
|
|
int DH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
|
|
|
|
CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
|
|
|
|
int DH_set_ex_data(DH *type, int idx, void *arg);
|
|
|
|
void *DH_get_ex_data(DH *type, int idx);
|
|
|
|
int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
|
|
|
|
CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
|
|
|
|
int DSA_set_ex_data(DSA *type, int idx, void *arg);
|
|
|
|
void *DSA_get_ex_data(DSA *type, int idx);
|
|
|
|
int EC_KEY_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
|
|
|
|
CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
|
|
|
|
int EC_KEY_set_ex_data(EC_KEY *type, int idx, void *arg);
|
|
|
|
void *EC_KEY_get_ex_data(EC_KEY *type, int idx);
|
|
|
|
int RSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
|
|
|
|
CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
|
|
|
|
int RSA_set_ex_data(RSA *type, int idx, void *arg);
|
|
|
|
void *RSA_get_ex_data(RSA *type, int idx);
|
|
|
|
int RSA_set_app_data(RSA *type, void *arg);
|
|
|
|
void *RSA_get_app_data(RSA *type);
|
|
|
|
int ENGINE_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
|
|
|
|
CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
|
|
|
|
int ENGINE_set_ex_data(ENGINE *type, int idx, void *arg);
|
|
|
|
void *ENGINE_get_ex_data(ENGINE *type, int idx);
|
|
|
|
|
2015-07-21 22:06:03 +08:00
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2016-06-21 19:03:34 +08:00
|
|
|
In the description here, I<TYPE> is used a placeholder
|
2021-03-16 07:39:19 +08:00
|
|
|
for any of the OpenSSL datatypes listed in L<CRYPTO_get_ex_new_index(3)>.
|
|
|
|
|
|
|
|
All functions with a I<TYPE> of B<DH>, B<DSA>, B<RSA> and B<EC_KEY> are deprecated.
|
|
|
|
Applications should instead use EVP_PKEY_set_ex_data(),
|
|
|
|
EVP_PKEY_get_ex_data() and EVP_PKEY_get_ex_new_index().
|
|
|
|
|
|
|
|
All functions with a I<TYPE> of B<ENGINE> are deprecated.
|
|
|
|
Applications using engines should be replaced by providers.
|
2016-06-21 19:03:34 +08:00
|
|
|
|
|
|
|
These functions handle application-specific data for OpenSSL data
|
2015-07-21 22:06:03 +08:00
|
|
|
structures.
|
|
|
|
|
2020-01-18 03:15:59 +08:00
|
|
|
TYPE_get_ex_new_index() is a macro that calls CRYPTO_get_ex_new_index()
|
2016-06-21 19:03:34 +08:00
|
|
|
with the correct B<index> value.
|
|
|
|
|
|
|
|
TYPE_set_ex_data() is a function that calls CRYPTO_set_ex_data() with
|
|
|
|
an offset into the opaque exdata part of the TYPE object.
|
|
|
|
|
2017-08-01 06:58:40 +08:00
|
|
|
TYPE_get_ex_data() is a function that calls CRYPTO_get_ex_data() with
|
2016-06-21 19:03:34 +08:00
|
|
|
an offset into the opaque exdata part of the TYPE object.
|
2015-07-21 22:06:03 +08:00
|
|
|
|
2019-10-19 00:24:39 +08:00
|
|
|
For compatibility with previous releases, the exdata index of zero is
|
|
|
|
reserved for "application data." There are two convenience functions for
|
|
|
|
this.
|
|
|
|
TYPE_set_app_data() is a macro that invokes TYPE_set_ex_data() with
|
|
|
|
B<idx> set to zero.
|
|
|
|
TYPE_get_app_data() is a macro that invokes TYPE_get_ex_data() with
|
|
|
|
B<idx> set to zero.
|
|
|
|
|
2017-12-25 17:50:39 +08:00
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
2020-01-18 03:15:59 +08:00
|
|
|
TYPE_get_ex_new_index() returns a new index on success or -1 on error.
|
2017-12-25 17:50:39 +08:00
|
|
|
|
|
|
|
TYPE_set_ex_data() returns 1 on success or 0 on error.
|
|
|
|
|
|
|
|
TYPE_get_ex_data() returns the application data or NULL if an error occurred.
|
|
|
|
|
2015-07-21 22:06:03 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<CRYPTO_get_ex_new_index(3)>.
|
|
|
|
|
2020-07-14 08:28:49 +08:00
|
|
|
=head1 HISTORY
|
|
|
|
|
2021-03-16 07:39:19 +08:00
|
|
|
The functions DH_get_ex_new_index(), DH_set_ex_data(), DH_get_ex_data(),
|
|
|
|
DSA_get_ex_new_index(), DSA_set_ex_data(), DSA_get_ex_data(),
|
|
|
|
EC_KEY_get_ex_new_index(), EC_KEY_set_ex_data(), EC_KEY_get_ex_data(),
|
|
|
|
ENGINE_get_ex_new_index(), ENGINE_set_ex_data(), ENGINE_get_ex_data(),
|
|
|
|
RSA_get_ex_new_index(), RSA_set_ex_data(), RSA_get_ex_data(),
|
|
|
|
RSA_set_app_data() and RSA_get_app_data() were deprecated in OpenSSL 3.0.
|
2020-07-14 08:28:49 +08:00
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2021-03-16 07:39:19 +08:00
|
|
|
Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 23:44:05 +08:00
|
|
|
|
2018-12-06 21:04:44 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|