From: Dr. Stephen Henson Date: Sun, 30 Jan 2000 01:39:40 +0000 (+0000) Subject: Update docs. X-Git-Tag: OpenSSL_0_9_5beta1~158 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=15701211b57b63f1f91a9c3781ea91c019b1dc1d;ds=sidebyside Update docs. --- diff --git a/doc/crypto/BN_CTX_new.pod b/doc/crypto/BN_CTX_new.pod index 45c70fd407..37a188e3c3 100644 --- a/doc/crypto/BN_CTX_new.pod +++ b/doc/crypto/BN_CTX_new.pod @@ -16,12 +16,12 @@ BN_CTX_new, BN_CTX_init, BN_CTX_free - allocate and free BN_CTX structures =head1 DESCRIPTION -A B is a structure that holds temporary variables used by -library functions. Thus, it can be avoided to create and destroy -the temporary B objects whenever a library function is -called. +A B is a structure that holds B temporary variables used by +library functions. Since dynamic memory allocation to create Bs +is rather expensive when used in conjunction with repeated subroutine +calls, the B structure is used. -BN_CTX_new() allocated and initializes a B +BN_CTX_new() allocates and initializes a B structure. BN_CTX_init() initializes an existing uninitialized B. diff --git a/doc/crypto/BN_zero.pod b/doc/crypto/BN_zero.pod index 43b6337bae..165fd9a228 100644 --- a/doc/crypto/BN_zero.pod +++ b/doc/crypto/BN_zero.pod @@ -39,6 +39,9 @@ BN_value_one() returns the constant. Someone might change the constant. +If a B is equal to 0xffffffffL it can be represented as an +unsigned long but this value is also returned on error. + =head1 SEE ALSO L, L diff --git a/doc/crypto/CRYPTO_set_ex_data.pod b/doc/crypto/CRYPTO_set_ex_data.pod new file mode 100644 index 0000000000..1bd5bed67d --- /dev/null +++ b/doc/crypto/CRYPTO_set_ex_data.pod @@ -0,0 +1,51 @@ +=pod + +=head1 NAME + +CRYPTO_set_ex_data, CRYPTO_get_ex_data - internal application specific data functions + +=head1 SYNOPSIS + + int CRYPTO_set_ex_data(CRYPTO_EX_DATA *r, int idx, void *arg); + + void *CRYPTO_get_ex_data(CRYPTO_EX_DATA *r, int idx); + +=head1 DESCRIPTION + +Several OpenSSL structures can have application specific data attached to them. +These functions are used internally by OpenSSL to manipulate application +specific data attached to a specific structure. + +These functions should only be used by applications to manipulate +B structures passed to the B, B and +B callbacks: as passed to B for example. + +B is used to set application specific data, the data is +supplied in the B parameter and its precise meaning is up to the +application. + +B is used to retrieve application specific data. The data +is returned to the application, this will be the same value as supplied to +a previous B call. + +=head1 RETURN VALUES + +B returns 1 on success or 0 on failure. + +B returns the application data or 0 on failure. 0 may also +be valid application data but currently it can only fail if given an invalid B +parameter. + +On failure an error code can be obtained from L. + +=head1 SEE ALSO + +L, +L, +L + +=head1 HISTORY + +CRYPTO_set_ex_data() and CRYPTO_get_ex_data() have been available since SSLeay 0.9.0. + +=cut diff --git a/doc/crypto/RSA_get_ex_new_index.pod b/doc/crypto/RSA_get_ex_new_index.pod index d0267a2ea1..920dc76325 100644 --- a/doc/crypto/RSA_get_ex_new_index.pod +++ b/doc/crypto/RSA_get_ex_new_index.pod @@ -71,7 +71,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 @@ -112,7 +112,7 @@ present in the parent RSA structure when it is called. =head1 SEE ALSO -L +L, L =head1 HISTORY diff --git a/doc/crypto/bn.pod b/doc/crypto/bn.pod index 3d4840f095..823561fa8d 100644 --- a/doc/crypto/bn.pod +++ b/doc/crypto/bn.pod @@ -144,14 +144,14 @@ The following description is based on the SSLeay documentation: int neg; } BIGNUM; -The big number is stored in B, a malloc()ed array of Bs. -A B can be either 16, 32 or 64 bits in size, depending on -the 'number of bits' specified in bn.h. +The big number is stored in B, a malloc()ed array of Bs, +least significant first. A B can be either 16, 32 or 64 bits +in size, depending on the 'number of bits' specified in bn.h. B is the size of the B array that has been allocated. B is the 'last' entry being used, so for a value of 4, bn.d[0]=4 and bn.top=1. B is 1 if the number is negative. When a BIGNUM is -'0', the B field can be NULL and B == 0. Various routines in +'0', the B field can be NULL and B == 0. Various routines in this library require the use of temporary B variables during their execution. Since dynamic memory allocation to create Bs is rather expensive when used in conjunction with repeated subroutine @@ -166,6 +166,8 @@ temporary Bs any publicly exported function will use. BIGNUM *bn[BN_CTX_NUM]; /* The variables */ } BN_CTX; +B is the index of the first unused B in the B array. + =head1 SEE ALSO L, L, L, L,