From 919874a2a5d71bc1e53c8915c9030a0ff9320fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 9 Aug 2020 19:08:32 +0200 Subject: [PATCH] Add AUTHORITY_KEYID struct --- openssl-sys/src/x509v3.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openssl-sys/src/x509v3.rs b/openssl-sys/src/x509v3.rs index 7b78cce15..09329a89f 100644 --- a/openssl-sys/src/x509v3.rs +++ b/openssl-sys/src/x509v3.rs @@ -27,6 +27,17 @@ extern "C" { pub fn GENERAL_NAME_free(name: *mut GENERAL_NAME); } +#[repr(C)] +pub struct AUTHORITY_KEYID { + pub keyid: *mut ASN1_STRING, + pub issuer: *mut stack_st_GENERAL_NAME, + pub serial: *mut ASN1_INTEGER, +} + +extern "C" { + pub fn AUTHORITY_KEYID_free(akid: *mut AUTHORITY_KEYID); +} + #[cfg(any(ossl102, libressl261))] pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: c_uint = 0x1; #[cfg(any(ossl102, libressl261))] -- GitLab