aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/asn1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/asn1.rs')
-rw-r--r--openssl/src/asn1.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/openssl/src/asn1.rs b/openssl/src/asn1.rs
index 8016df13..46c09740 100644
--- a/openssl/src/asn1.rs
+++ b/openssl/src/asn1.rs
@@ -93,7 +93,13 @@ impl Asn1StringRef {
}
}
-type_!(Asn1Integer, Asn1IntegerRef, ffi::ASN1_INTEGER, ffi::ASN1_INTEGER_free);
+foreign_type! {
+ type CType = ffi::ASN1_INTEGER;
+ fn drop = ffi::ASN1_INTEGER_free;
+
+ pub struct Asn1Integer;
+ pub struct Asn1IntegerRef;
+}
impl Asn1IntegerRef {
pub fn get(&self) -> i64 {