summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-10-05 14:23:55 +0200
committerRichard Levitte <levitte@openssl.org>2020-10-10 20:23:39 +0200
commit25cf949fc620ff7053e51acca3ec4d0fd094f8b0 (patch)
treedfbffa70ab45c5bad376f86ef518cd02eb38ca7a /util
parent3094351625f0b222f92c22ce4943461df8c7e301 (diff)
ENCODER / DECODER: Add functions to encode/decode to/from a buffer
This adds OSSL_ENCODER_to_data() and OSSL_DECODER_from_data(). These functions allow fairly simple rewrites of type-specific i2d and d2i calls. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13094)
Diffstat (limited to 'util')
-rw-r--r--util/libcrypto.num2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/libcrypto.num b/util/libcrypto.num
index 05e006eb72..fb0069c9e8 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -5286,3 +5286,5 @@ EVP_KEM_gettable_ctx_params ? 3_0_0 EXIST::FUNCTION:
EVP_KEM_settable_ctx_params ? 3_0_0 EXIST::FUNCTION:
PKCS7_type_is_other ? 3_0_0 EXIST::FUNCTION:
PKCS7_get_octet_string ? 3_0_0 EXIST::FUNCTION:
+OSSL_DECODER_from_data ? 3_0_0 EXIST::FUNCTION:
+OSSL_ENCODER_to_data ? 3_0_0 EXIST::FUNCTION: