summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-11-18 01:32:22 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-29 20:55:16 +0100
commit742496f1309d04f4921ca64e4b6315a45a47b4af (patch)
treee3c21274c6f1ae8e545e458edc986d96663085cc /util
parent0d003c52d3dcf4b076bb01a6767cdd5ace2d79f6 (diff)
SERIALIZER: add functions for serialization to file
These functions are added: - OSSL_SERIALIZER_to_bio() - OSSL_SERIALIZER_to_fp() (unless 'no-stdio') OSSL_SERIALIZER_to_bio() and OSSL_SERIALIZER_to_fp() work as wrapper functions, and call an internal "do_output" function with the given serializer context and a BIO to output the serialized result to. The internal "do_output" function must have intimate knowledge of the object being output. This will defined independently with context creators for specific OpenSSL types. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10394)
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 5f246571c4..cc94d580cd 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -4892,3 +4892,5 @@ OSSL_SERIALIZER_CTX_get_serializer ? 3_0_0 EXIST::FUNCTION:
OSSL_SERIALIZER_CTX_set_params ? 3_0_0 EXIST::FUNCTION:
OSSL_SERIALIZER_CTX_free ? 3_0_0 EXIST::FUNCTION:
OSSL_SERIALIZER_properties ? 3_0_0 EXIST::FUNCTION:
+OSSL_SERIALIZER_to_bio ? 3_0_0 EXIST::FUNCTION:
+OSSL_SERIALIZER_to_fp ? 3_0_0 EXIST::FUNCTION:STDIO