X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2FRSA_get_ex_new_index.pod;h=7d0fd1f91de9ddb6fa9410b2f2712976c74fe933;hp=c56adb8b7f6dfc385dfeb224b824adbfdd59cb8c;hb=5cc270774258149235f69e1789b3370f57b0e27b;hpb=fd38fecc1a79b9365a6ecbc2a908f2eb9751db6f diff --git a/doc/crypto/RSA_get_ex_new_index.pod b/doc/crypto/RSA_get_ex_new_index.pod index c56adb8b7f..7d0fd1f91d 100644 --- a/doc/crypto/RSA_get_ex_new_index.pod +++ b/doc/crypto/RSA_get_ex_new_index.pod @@ -2,7 +2,7 @@ =head1 NAME -RSA_get_ex_new_index, RSA_set_ex_data, RSA_get_ex_data - add application specific data to RSA structures. +RSA_get_ex_new_index, RSA_set_ex_data, RSA_get_ex_data - add application specific data to RSA structures =head1 SYNOPSIS @@ -13,19 +13,16 @@ RSA_get_ex_new_index, RSA_set_ex_data, RSA_get_ex_data - add application specifi CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); - int RSA_set_ex_data(RSA *r,int idx,void *arg); + int RSA_set_ex_data(RSA *r, int idx, void *arg); void *RSA_get_ex_data(RSA *r, int idx); - int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, - int idx, long argl, void *argp); - - void free_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad, - int idx, long argl, void *argp); - int dup_func(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d, - int idx, long argl, void *argp); - - + typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, + int idx, long argl, void *argp); + typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, + int idx, long argl, void *argp); + typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d, + int idx, long argl, void *argp); =head1 DESCRIPTION @@ -42,7 +39,7 @@ new application specific data. It takes three optional function pointers which are called when the parent structure (in this case an RSA structure) is initially created, when it is copied and when it is freed up. If any or all of these function pointer arguments are not used they should be set to NULL. The -precise manner in which these function pointer are called is described in more +precise manner in which these function pointers are called is described in more detail below. B also takes additional long and pointer parameters which will be passed to the supplied functions but which otherwise have no special meaning. It returns an B which should be stored @@ -72,7 +69,7 @@ B and B take the same parameters. B is a pointer to the parent RSA structure. B is a the application specific data (this wont be of much use in B. B is a pointer to the B structure from the parent RSA structure: the functions -B and B can be called to manipulate +B and B can be called to manipulate it. The B parameter is the index: this will be the same value returned by B when the functions were initially registered. Finally the B and B parameters are the values originally passed to the same @@ -100,7 +97,7 @@ parameter. B and B should return 0 for failure and 1 for success. -On failure an error code can be obtained from B. +On failure an error code can be obtained from L. =head1 BUGS @@ -113,10 +110,11 @@ present in the parent RSA structure when it is called. =head1 SEE ALSO -... +L, L =head1 HISTORY -... +RSA_get_ex_new_index(), RSA_set_ex_data() and RSA_get_ex_data() are +available since SSLeay 0.9.0. =cut