diff options
author | David Benjamin <davidben@google.com> | 2016-09-17 02:19:16 +0300 |
---|---|---|
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | 2016-09-17 04:06:40 +0300 |
commit | c446ce52944cb2fd9073a9072fc6e151af16919b (patch) | |
tree | f3ef2e649cbcf1e85cfd7c33b513324a4eedfe7c /include/openssl | |
parent | 41b8ff24ce94816ef1ff074391c7b7cab63d7aad (diff) |
Add EVP_AEAD_CTX_aead.
Code acting generically on an EVP_AEAD_CTX may wish to get at the
underlying EVP_AEAD.
Change-Id: I9cc905522ba76402bda4c255aa1488158323b02c
Reviewed-on: https://boringssl-review.googlesource.com/11085
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Reviewed-by: Matt Braithwaite <mab@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Diffstat (limited to 'include/openssl')
-rw-r--r-- | include/openssl/aead.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/aead.h b/include/openssl/aead.h index 458d73bc..af81fa65 100644 --- a/include/openssl/aead.h +++ b/include/openssl/aead.h @@ -256,6 +256,10 @@ OPENSSL_EXPORT int EVP_AEAD_CTX_open(const EVP_AEAD_CTX *ctx, uint8_t *out, const uint8_t *in, size_t in_len, const uint8_t *ad, size_t ad_len); +/* EVP_AEAD_CTX_aead returns the underlying AEAD for |ctx|, or NULL if one has + * not been set. */ +OPENSSL_EXPORT const EVP_AEAD *EVP_AEAD_CTX_aead(const EVP_AEAD_CTX *ctx); + /* TLS-specific AEAD algorithms. * |