aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/libressl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl-sys/src/libressl.rs')
-rw-r--r--openssl-sys/src/libressl.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/openssl-sys/src/libressl.rs b/openssl-sys/src/libressl.rs
index 2862a47e..1bb17849 100644
--- a/openssl-sys/src/libressl.rs
+++ b/openssl-sys/src/libressl.rs
@@ -247,8 +247,8 @@ pub struct DH {
#[repr(C)]
pub struct X509 {
pub cert_info: *mut X509_CINF,
- sig_alg: *mut c_void,
- signature: *mut c_void,
+ pub sig_alg: *mut ::X509_ALGOR,
+ pub signature: *mut ::ASN1_BIT_STRING,
pub valid: c_int,
pub references: c_int,
pub name: *mut c_char,
@@ -286,6 +286,12 @@ pub struct X509_CINF {
}
#[repr(C)]
+pub struct X509_ALGOR {
+ pub algorithm: *mut ::ASN1_OBJECT,
+ parameter: *mut c_void,
+}
+
+#[repr(C)]
pub struct ASN1_ENCODING {
pub enc: *mut c_uchar,
pub len: c_long,