Commit c779e64c authored by Dave King's avatar Dave King
Browse files

Removed unused X509NameFormat enum

To be added at a later date when the API is expanded
parent ad915f13
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -93,10 +93,6 @@ pub static X509_V_ERR_UNSUPPORTED_NAME_SYNTAX: c_int = 53;
pub static X509_V_ERR_CRL_PATH_VALIDATION_ERROR: c_int = 54;
pub static X509_V_ERR_APPLICATION_VERIFICATION: c_int = 50;

pub static XN_FLAG_RFC2253: c_ulong = 0x1110317;
pub static XN_FLAG_ONELINE: c_ulong = 0x82031f;
pub static XN_FLAG_MULTILINE: c_ulong = 0x2a40006;

#[link(name="ssl")]
#[link(name="crypto")]
extern "C" {
+0 −7
Original line number Diff line number Diff line
@@ -213,13 +213,6 @@ pub struct X509Name<'x> {
    name: *mut ffi::X509_NAME
}

#[repr(u64)]
pub enum X509NameFormat {
    Rfc2253 = ffi::XN_FLAG_RFC2253,
    Oneline = ffi::XN_FLAG_ONELINE,
    Multiline = ffi::XN_FLAG_MULTILINE
}

macro_rules! make_validation_error(
    ($ok_val:ident, $($name:ident = $val:ident,)+) => (
        pub enum X509ValidationError {