From ef5160de2cad987bc138bc81ae9da43b03158e61 Mon Sep 17 00:00:00 2001 From: Q Date: Fri, 14 Oct 2022 11:12:20 +0100 Subject: [PATCH] add i2d_ASN1_INTEGER --- openssl-sys/src/handwritten/asn1.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openssl-sys/src/handwritten/asn1.rs b/openssl-sys/src/handwritten/asn1.rs index 844f9102a9..ce4e3d0e62 100644 --- a/openssl-sys/src/handwritten/asn1.rs +++ b/openssl-sys/src/handwritten/asn1.rs @@ -58,3 +58,9 @@ const_ptr_api! { pub fn ASN1_STRING_to_UTF8(out: *mut *mut c_uchar, s: #[const_ptr_if(any(ossl110, libressl280))] ASN1_STRING) -> c_int; } } + +const_ptr_api! { + extern "C" { + pub fn i2d_ASN1_INTEGER(k: #[const_ptr_if(ossl300)] ASN1_INTEGER, buf: *mut *mut u8) -> c_int; + } +}