From: tb Date: Sun, 13 Nov 2022 13:59:46 +0000 (+0000) Subject: Expose ASN1_buf_print() in asn1.h X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a67192a8d7df4a9e40254b0a9573faff5d4ae9fe;p=openbsd Expose ASN1_buf_print() in asn1.h This is needed to print the 32-byte Ed25519 keys which aren't handled as BNs. --- diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h index 24ba6a66685..fc1d4be02bc 100644 --- a/lib/libcrypto/asn1/asn1.h +++ b/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