aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-02-16 14:00:55 +0000
committerMatt Caswell <matt@openssl.org>2016-03-07 21:39:28 +0000
commitccd82ef4c2ca0b1e931e8f6e5f3848a2110b8680 (patch)
tree0a15f19e2a893abb7fcb99f0ffd5b17e3d6fbed0
parentf482740f2389946b8738b963f2cf12c5a3b4d399 (diff)
downloadopenssl-ccd82ef4c2ca0b1e931e8f6e5f3848a2110b8680.zip
openssl-ccd82ef4c2ca0b1e931e8f6e5f3848a2110b8680.tar.gz
openssl-ccd82ef4c2ca0b1e931e8f6e5f3848a2110b8680.tar.bz2
Add documentation for the EVP_CIPHER_CTX_cipher_data functions
The new pipeline code added a new function EVP_CIPHER_CTX_set_cipher_data(). Add documentation for this and the existing EVP_CIPHER_CTX_cipher_data() function. Reviewed-by: Tim Hudson <tjh@openssl.org>
-rw-r--r--doc/crypto/EVP_CIPHER_CTX_cipher_data.pod41
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/crypto/EVP_CIPHER_CTX_cipher_data.pod b/doc/crypto/EVP_CIPHER_CTX_cipher_data.pod
new file mode 100644
index 0000000..c895dd1
--- /dev/null
+++ b/doc/crypto/EVP_CIPHER_CTX_cipher_data.pod
@@ -0,0 +1,41 @@
+=pod
+
+=head1 NAME
+
+EVP_CIPHER_CTX_cipher_data, EVP_CIPHER_CTX_set_cipher_data - Routines to inspect
+and modify EVP_CIPHER_CTX objects
+
+=head1 SYNOPSIS
+
+ #include <openssl/evp.h>
+
+ void *EVP_CIPHER_CTX_cipher_data(const EVP_CIPHER_CTX *ctx);
+ void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
+
+=head1 DESCRIPTION
+
+The EVP_CIPHER_CTX_cipher_data() function returns a pointer to the cipher data
+relevant to EVP_CIPHER_CTX. The contents of this data is specific to the
+particular implementation of the cipher. For example this data can be used by
+engines to store engine specific information. The data is automatically
+allocated and freed by OpenSSL, so applications and engines should not normally
+free this directly (but see below).
+
+The EVP_CIPHER_CTX_set_cipher_data() function allows an application or engine to
+replace the cipher data with new data. A pointer to any existing cipher data is
+returned from this function. If the old data is no longer required then it
+should be freed through a call to OPENSSL_free().
+
+=head1 RETURN VALUES
+
+The EVP_CIPHER_CTX_cipher_data() function returns a pointer to the current
+cipher data for the EVP_CIPHER_CTX.
+
+The EVP_CIPHER_CTX_set_cipher_data() function returns a pointer to the old
+cipher data for the EVP_CIPHER_CTX.
+
+=head1 HISTORY
+
+The EVP_CIPHER_CTX_set_cipher_data() function was added in OpenSSL 1.1.0.
+
+=cut