From e4d4e6fd04a759206b1c113e7e5635e33d15e840 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 13 Nov 2022 13:59:46 +0000 Subject: Expose ASN1_buf_print() in asn1.h This is needed to print the 32-byte Ed25519 keys which aren't handled as BNs. --- src/lib/libcrypto/asn1/asn1.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 24ba6a6668..fc1d4be02b 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1.h,v 1.71 2022/11/10 13:09:34 jsing Exp $ */ +/* $OpenBSD: asn1.h,v 1.72 2022/11/13 13:59:46 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -838,9 +838,7 @@ int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v); int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags); int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, unsigned char *buf, int off); -#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) int ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int indent); -#endif int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent); int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, int dump); #endif -- cgit v1.2.3-55-g6feb