]> git.ipfire.org Git - thirdparty/openssl.git/commit - util/libcrypto.num
ENCODER / DECODER: Add functions to encode/decode to/from a buffer
authorRichard Levitte <levitte@openssl.org>
Mon, 5 Oct 2020 12:23:55 +0000 (14:23 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 10 Oct 2020 18:23:39 +0000 (20:23 +0200)
commit25cf949fc620ff7053e51acca3ec4d0fd094f8b0
treedfbffa70ab45c5bad376f86ef518cd02eb38ca7a
parent3094351625f0b222f92c22ce4943461df8c7e301
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)
crypto/encode_decode/decoder_lib.c
crypto/encode_decode/encoder_lib.c
doc/man3/OSSL_DECODER_from_bio.pod
doc/man3/OSSL_ENCODER_to_bio.pod
include/openssl/decoder.h
include/openssl/encoder.h
util/libcrypto.num