crypto: Remove unused DER string functions
PATCH 1/1 crypto: Remove unused DER string functions
From: "Dr. David Alan Gilbert" <[email protected]>
qcrypto_der_encode_octet_str_begin and _end have been unused since they were added in
3b34ccad66 ("crypto: Support DER encodings")
Remove them.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- crypto/der.c | 13 ------------- crypto/der.h | 22 ---------------------- 2 files changed, 35 deletions(-)
crypto/der.c +0 -13
@@ -408,19 +408,6 @@ void qcrypto_der_encode_octet_str(QCryptoEncodeContext *ctx,qcrypto_der_encode_prim (ctx, tag, src, src_len); } -void qcrypto_der_encode_octet_str_begin (QCryptoEncodeContext *ctx) -{ -uint8_t tag =QCRYPTO_DER_TAG (QCRYPTO_DER_TAG_CLASS_UNIV , -QCRYPTO_DER_TAG_ENC_PRIM , -QCRYPTO_DER_TYPE_TAG_OCT_STR ); -qcrypto_der_encode_cons_begin (ctx, tag); -} - -void qcrypto_der_encode_octet_str_end (QCryptoEncodeContext *ctx) -{ -qcrypto_der_encode_cons_end (ctx); -} -size_t qcrypto_der_encode_ctx_buffer_len (QCryptoEncodeContext *ctx) {return ctx->root.dlen;
crypto/der.h +0 -22
@@ -242,28 +242,6 @@ void qcrypto_der_encode_null(QCryptoEncodeContext *ctx);void qcrypto_der_encode_octet_str (QCryptoEncodeContext *ctx,const uint8_t *src,size_t src_len); -/** -* qcrypto_der_encode_octet_str_begin: -* @ctx: the encode context. -* -* Start encoding a octet string, All fields between -* qcrypto_der_encode_octet_str_begin and qcrypto_der_encode_octet_str_end -* are encoded as an octet string. This is useful when we need to encode a -* encoded SEQUENCE as OCTET STRING. -*/ -void qcrypto_der_encode_octet_str_begin (QCryptoEncodeContext *ctx); - -/** -* qcrypto_der_encode_octet_str_end: -* @ctx: the encode context. -* -* Finish encoding a octet string, All fields between -* qcrypto_der_encode_octet_str_begin and qcrypto_der_encode_octet_str_end -* are encoded as an octet string. This is useful when we need to encode a -* encoded SEQUENCE as OCTET STRING. -*/ -void qcrypto_der_encode_octet_str_end (QCryptoEncodeContext *ctx); -/** * qcrypto_der_encode_ctx_buffer_len: * @ctx: the encode context.
Signature · 1 line
2.46.0
Quoted 6 lines · On Wed, Sep 18, 2024 at 03:55:28PM +0100, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
qcrypto_der_encode_octet_str_beginand_endhave been unused since they were added in
3b34ccad66("crypto: Support DER encodings")
Quoted 7 lines
Remove them.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- crypto/der.c | 13 ------------- crypto/der.h | 22 ---------------------- 2 files changed, 35 deletions(-)
Reviewed-by Daniel P. Berrangé <[email protected]>
and queued
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|