summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-11-13 13:59:46 +0000
committertb <>2022-11-13 13:59:46 +0000
commite4d4e6fd04a759206b1c113e7e5635e33d15e840 (patch)
tree447452fda16476151e8552e17f7c4135667b068f /src
parent70ab1d8e94bd3980047d58c783b898276a0faa90 (diff)
downloadopenbsd-e4d4e6fd04a759206b1c113e7e5635e33d15e840.tar.gz
openbsd-e4d4e6fd04a759206b1c113e7e5635e33d15e840.tar.bz2
openbsd-e4d4e6fd04a759206b1c113e7e5635e33d15e840.zip
Expose ASN1_buf_print() in asn1.h
This is needed to print the 32-byte Ed25519 keys which aren't handled as BNs.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/asn1.h4
1 files changed, 1 insertions, 3 deletions
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 @@
1/* $OpenBSD: asn1.h,v 1.71 2022/11/10 13:09:34 jsing Exp $ */ 1/* $OpenBSD: asn1.h,v 1.72 2022/11/13 13:59:46 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -838,9 +838,7 @@ int ASN1_STRING_print(BIO *bp, const ASN1_STRING *v);
838int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags); 838int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);
839int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, 839int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num,
840 unsigned char *buf, int off); 840 unsigned char *buf, int off);
841#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
842int ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int indent); 841int ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int indent);
843#endif
844int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent); 842int ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent);
845int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, int dump); 843int ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent, int dump);
846#endif 844#endif