summaryrefslogtreecommitdiff
path: root/include/apr_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apr_crypto.h')
-rw-r--r--include/apr_crypto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/apr_crypto.h b/include/apr_crypto.h
index 2b772d1f..9c5778be 100644
--- a/include/apr_crypto.h
+++ b/include/apr_crypto.h
@@ -132,6 +132,17 @@ typedef struct apr_crypto_block_t apr_crypto_block_t;
APU_DECLARE(apr_status_t) apr_crypto_init(apr_pool_t *pool);
/**
+ * @brief Register a cleanup to zero out the buffer provided
+ * when the pool is cleaned up.
+ *
+ * @param pool - pool to register the cleanup
+ * @param buffer - buffer to zero out
+ * @param size - size of the buffer to zero out
+ */
+APR_DECLARE(apr_status_t) apr_crypto_clear(apr_pool_t *pool, void *buffer,
+ apr_size_t size);
+
+/**
* @brief Get the driver struct for a name
*
* @param driver - pointer to driver struct.