X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fman3%2FEVP_PKEY_CTX_ctrl.pod;h=e1a107c06e3c9bd7f3dc771cb761fd6be0b61010;hp=d70dbb9cf2cec457367c14f28faa247324e369f5;hb=f922dac87d859cc7419207301533fe89582ac3ea;hpb=81c7945388a49799f819f5ca5bfe6acd506840c3 diff --git a/doc/man3/EVP_PKEY_CTX_ctrl.pod b/doc/man3/EVP_PKEY_CTX_ctrl.pod index d70dbb9cf2..e1a107c06e 100644 --- a/doc/man3/EVP_PKEY_CTX_ctrl.pod +++ b/doc/man3/EVP_PKEY_CTX_ctrl.pod @@ -167,15 +167,15 @@ B value was only added to OpenSSL 1.1.0; previous versions should use 0 instead. The EVP_PKEY_CTX_set1_id(), EVP_PKEY_CTX_get1_id() and EVP_PKEY_CTX_get1_id_len() -are used to manipulate special identifier field for specific signature algorithm -such as SM2. The EVP_PKEY_set1_id() sets an ID pointed by B with the length -B to the library. The library maintains the memory management stuffs so -the caller can safely free the original memory pointed by B. The -EVP_PKEY_CTX_get1_id_len() returns the length of the ID set via a previous call -to EVP_PKEY_set1_id(). The length is usually used to allocate adequate memory for -further calls to EVP_PKEY_CTX_get1_id(). The EVP_PKEY_CTX_get1_id() returns the -previously set ID value to caller into B, caller should allocate adequate -memory space to B before calling EVP_PKEY_CTX_get1_id(). +macros are used to manipulate the special identifier field for specific signature +algorithms such as SM2. The EVP_PKEY_CTX_set1_id() sets an ID pointed by B with +the length B to the library. The library takes a copy of the id so that +the caller can safely free the original memory pointed to by B. The +EVP_PKEY_CTX_get1_id_len() macro returns the length of the ID set via a previous +call to EVP_PKEY_CTX_set1_id(). The length is usually used to allocate adequate +memory for further calls to EVP_PKEY_CTX_get1_id(). The EVP_PKEY_CTX_get1_id() +macro returns the previously set ID value to caller in B. The caller should +allocate adequate memory space for the B before calling EVP_PKEY_CTX_get1_id(). =head1 RETURN VALUES @@ -197,7 +197,7 @@ L =head1 HISTORY EVP_PKEY_CTX_set1_id(), EVP_PKEY_CTX_get1_id() and EVP_PKEY_CTX_get1_id_len() -were added in 1.1.1, other functions were first added to OpenSSL 1.0.0. +macros were added in 1.1.1, other functions were first added to OpenSSL 1.0.0. =head1 COPYRIGHT