Prepare for s/static/const/
This commit is contained in:
parent
bd38812880
commit
f1b8ad7df9
162
src/ffi.rs
162
src/ffi.rs
|
|
@ -77,94 +77,94 @@ pub type PrivateKeyWriteCallback = extern "C" fn(buf: *mut c_char, size: c_int,
|
||||||
rwflag: c_int, user_data: *mut c_void)
|
rwflag: c_int, user_data: *mut c_void)
|
||||||
-> c_int;
|
-> c_int;
|
||||||
|
|
||||||
pub static BIO_CTRL_EOF: c_int = 2;
|
pub const BIO_CTRL_EOF: c_int = 2;
|
||||||
|
|
||||||
pub static CRYPTO_LOCK: c_int = 1;
|
pub const CRYPTO_LOCK: c_int = 1;
|
||||||
|
|
||||||
pub static MBSTRING_ASC: c_int = MBSTRING_FLAG | 1;
|
pub const MBSTRING_ASC: c_int = MBSTRING_FLAG | 1;
|
||||||
pub static MBSTRING_BMP: c_int = MBSTRING_FLAG | 2;
|
pub const MBSTRING_BMP: c_int = MBSTRING_FLAG | 2;
|
||||||
pub static MBSTRING_FLAG: c_int = 0x1000;
|
pub const MBSTRING_FLAG: c_int = 0x1000;
|
||||||
pub static MBSTRING_UNIV: c_int = MBSTRING_FLAG | 4;
|
pub const MBSTRING_UNIV: c_int = MBSTRING_FLAG | 4;
|
||||||
pub static MBSTRING_UTF8: c_int = MBSTRING_FLAG;
|
pub const MBSTRING_UTF8: c_int = MBSTRING_FLAG;
|
||||||
|
|
||||||
pub static NID_ext_key_usage: c_int = 126;
|
pub const NID_ext_key_usage: c_int = 126;
|
||||||
pub static NID_key_usage: c_int = 83;
|
pub const NID_key_usage: c_int = 83;
|
||||||
|
|
||||||
pub static SSL_CTRL_SET_TLSEXT_HOSTNAME: c_int = 55;
|
pub const SSL_CTRL_SET_TLSEXT_HOSTNAME: c_int = 55;
|
||||||
pub static SSL_ERROR_NONE: c_int = 0;
|
pub const SSL_ERROR_NONE: c_int = 0;
|
||||||
pub static SSL_ERROR_SSL: c_int = 1;
|
pub const SSL_ERROR_SSL: c_int = 1;
|
||||||
pub static SSL_ERROR_SYSCALL: c_int = 5;
|
pub const SSL_ERROR_SYSCALL: c_int = 5;
|
||||||
pub static SSL_ERROR_WANT_ACCEPT: c_int = 8;
|
pub const SSL_ERROR_WANT_ACCEPT: c_int = 8;
|
||||||
pub static SSL_ERROR_WANT_CONNECT: c_int = 7;
|
pub const SSL_ERROR_WANT_CONNECT: c_int = 7;
|
||||||
pub static SSL_ERROR_WANT_READ: c_int = 2;
|
pub const SSL_ERROR_WANT_READ: c_int = 2;
|
||||||
pub static SSL_ERROR_WANT_WRITE: c_int = 3;
|
pub const SSL_ERROR_WANT_WRITE: c_int = 3;
|
||||||
pub static SSL_ERROR_WANT_X509_LOOKUP: c_int = 4;
|
pub const SSL_ERROR_WANT_X509_LOOKUP: c_int = 4;
|
||||||
pub static SSL_ERROR_ZERO_RETURN: c_int = 6;
|
pub const SSL_ERROR_ZERO_RETURN: c_int = 6;
|
||||||
pub static SSL_VERIFY_NONE: c_int = 0;
|
pub const SSL_VERIFY_NONE: c_int = 0;
|
||||||
pub static SSL_VERIFY_PEER: c_int = 1;
|
pub const SSL_VERIFY_PEER: c_int = 1;
|
||||||
|
|
||||||
pub static TLSEXT_NAMETYPE_host_name: c_long = 0;
|
pub const TLSEXT_NAMETYPE_host_name: c_long = 0;
|
||||||
|
|
||||||
pub static V_ASN1_GENERALIZEDTIME: c_int = 24;
|
pub const V_ASN1_GENERALIZEDTIME: c_int = 24;
|
||||||
pub static V_ASN1_UTCTIME: c_int = 23;
|
pub const V_ASN1_UTCTIME: c_int = 23;
|
||||||
|
|
||||||
pub static X509_FILETYPE_ASN1: c_int = 2;
|
pub const X509_FILETYPE_ASN1: c_int = 2;
|
||||||
pub static X509_FILETYPE_DEFAULT: c_int = 3;
|
pub const X509_FILETYPE_DEFAULT: c_int = 3;
|
||||||
pub static X509_FILETYPE_PEM: c_int = 1;
|
pub const X509_FILETYPE_PEM: c_int = 1;
|
||||||
pub static X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: c_int = 31;
|
pub const X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: c_int = 31;
|
||||||
pub static X509_V_ERR_AKID_SKID_MISMATCH: c_int = 30;
|
pub const X509_V_ERR_AKID_SKID_MISMATCH: c_int = 30;
|
||||||
pub static X509_V_ERR_APPLICATION_VERIFICATION: c_int = 50;
|
pub const X509_V_ERR_APPLICATION_VERIFICATION: c_int = 50;
|
||||||
pub static X509_V_ERR_CERT_CHAIN_TOO_LONG: c_int = 22;
|
pub const X509_V_ERR_CERT_CHAIN_TOO_LONG: c_int = 22;
|
||||||
pub static X509_V_ERR_CERT_HAS_EXPIRED: c_int = 10;
|
pub const X509_V_ERR_CERT_HAS_EXPIRED: c_int = 10;
|
||||||
pub static X509_V_ERR_CERT_NOT_YET_VALID: c_int = 9;
|
pub const X509_V_ERR_CERT_NOT_YET_VALID: c_int = 9;
|
||||||
pub static X509_V_ERR_CERT_REJECTED: c_int = 28;
|
pub const X509_V_ERR_CERT_REJECTED: c_int = 28;
|
||||||
pub static X509_V_ERR_CERT_REVOKED: c_int = 23;
|
pub const X509_V_ERR_CERT_REVOKED: c_int = 23;
|
||||||
pub static X509_V_ERR_CERT_SIGNATURE_FAILURE: c_int = 7;
|
pub const X509_V_ERR_CERT_SIGNATURE_FAILURE: c_int = 7;
|
||||||
pub static X509_V_ERR_CERT_UNTRUSTED: c_int = 27;
|
pub const X509_V_ERR_CERT_UNTRUSTED: c_int = 27;
|
||||||
pub static X509_V_ERR_CRL_HAS_EXPIRED: c_int = 12;
|
pub const X509_V_ERR_CRL_HAS_EXPIRED: c_int = 12;
|
||||||
pub static X509_V_ERR_CRL_NOT_YET_VALID: c_int = 11;
|
pub const X509_V_ERR_CRL_NOT_YET_VALID: c_int = 11;
|
||||||
pub static X509_V_ERR_CRL_PATH_VALIDATION_ERROR: c_int = 54;
|
pub const X509_V_ERR_CRL_PATH_VALIDATION_ERROR: c_int = 54;
|
||||||
pub static X509_V_ERR_CRL_SIGNATURE_FAILURE: c_int = 8;
|
pub const X509_V_ERR_CRL_SIGNATURE_FAILURE: c_int = 8;
|
||||||
pub static X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: c_int = 18;
|
pub const X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: c_int = 18;
|
||||||
pub static X509_V_ERR_DIFFERENT_CRL_SCOPE: c_int = 44;
|
pub const X509_V_ERR_DIFFERENT_CRL_SCOPE: c_int = 44;
|
||||||
pub static X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD: c_int = 14;
|
pub const X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD: c_int = 14;
|
||||||
pub static X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD: c_int = 13;
|
pub const X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD: c_int = 13;
|
||||||
pub static X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD: c_int = 15;
|
pub const X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD: c_int = 15;
|
||||||
pub static X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD: c_int = 16;
|
pub const X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD: c_int = 16;
|
||||||
pub static X509_V_ERR_EXCLUDED_VIOLATION: c_int = 48;
|
pub const X509_V_ERR_EXCLUDED_VIOLATION: c_int = 48;
|
||||||
pub static X509_V_ERR_INVALID_CA: c_int = 24;
|
pub const X509_V_ERR_INVALID_CA: c_int = 24;
|
||||||
pub static X509_V_ERR_INVALID_EXTENSION: c_int = 41;
|
pub const X509_V_ERR_INVALID_EXTENSION: c_int = 41;
|
||||||
pub static X509_V_ERR_INVALID_NON_CA: c_int = 37;
|
pub const X509_V_ERR_INVALID_NON_CA: c_int = 37;
|
||||||
pub static X509_V_ERR_INVALID_POLICY_EXTENSION: c_int = 42;
|
pub const X509_V_ERR_INVALID_POLICY_EXTENSION: c_int = 42;
|
||||||
pub static X509_V_ERR_INVALID_PURPOSE: c_int = 26;
|
pub const X509_V_ERR_INVALID_PURPOSE: c_int = 26;
|
||||||
pub static X509_V_ERR_KEYUSAGE_NO_CERTSIGN: c_int = 32;
|
pub const X509_V_ERR_KEYUSAGE_NO_CERTSIGN: c_int = 32;
|
||||||
pub static X509_V_ERR_KEYUSAGE_NO_CRL_SIGN: c_int = 35;
|
pub const X509_V_ERR_KEYUSAGE_NO_CRL_SIGN: c_int = 35;
|
||||||
pub static X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE: c_int = 39;
|
pub const X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE: c_int = 39;
|
||||||
pub static X509_V_ERR_NO_EXPLICIT_POLICY: c_int = 43;
|
pub const X509_V_ERR_NO_EXPLICIT_POLICY: c_int = 43;
|
||||||
pub static X509_V_ERR_OUT_OF_MEM: c_int = 17;
|
pub const X509_V_ERR_OUT_OF_MEM: c_int = 17;
|
||||||
pub static X509_V_ERR_PATH_LENGTH_EXCEEDED: c_int = 25;
|
pub const X509_V_ERR_PATH_LENGTH_EXCEEDED: c_int = 25;
|
||||||
pub static X509_V_ERR_PERMITTED_VIOLATION: c_int = 47;
|
pub const X509_V_ERR_PERMITTED_VIOLATION: c_int = 47;
|
||||||
pub static X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED: c_int = 40;
|
pub const X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED: c_int = 40;
|
||||||
pub static X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED: c_int = 38;
|
pub const X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED: c_int = 38;
|
||||||
pub static X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: c_int = 19;
|
pub const X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: c_int = 19;
|
||||||
pub static X509_V_ERR_SUBJECT_ISSUER_MISMATCH: c_int = 29;
|
pub const X509_V_ERR_SUBJECT_ISSUER_MISMATCH: c_int = 29;
|
||||||
pub static X509_V_ERR_SUBTREE_MINMAX: c_int = 49;
|
pub const X509_V_ERR_SUBTREE_MINMAX: c_int = 49;
|
||||||
pub static X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: c_int = 6;
|
pub const X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: c_int = 6;
|
||||||
pub static X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE: c_int = 4;
|
pub const X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE: c_int = 4;
|
||||||
pub static X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE: c_int = 5;
|
pub const X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE: c_int = 5;
|
||||||
pub static X509_V_ERR_UNABLE_TO_GET_CRL: c_int = 3;
|
pub const X509_V_ERR_UNABLE_TO_GET_CRL: c_int = 3;
|
||||||
pub static X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER: c_int = 33;
|
pub const X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER: c_int = 33;
|
||||||
pub static X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: c_int = 2;
|
pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: c_int = 2;
|
||||||
pub static X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: c_int = 20;
|
pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: c_int = 20;
|
||||||
pub static X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: c_int = 21;
|
pub const X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: c_int = 21;
|
||||||
pub static X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION: c_int = 36;
|
pub const X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION: c_int = 36;
|
||||||
pub static X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION: c_int = 34;
|
pub const X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION: c_int = 34;
|
||||||
pub static X509_V_ERR_UNNESTED_RESOURCE: c_int = 46;
|
pub const X509_V_ERR_UNNESTED_RESOURCE: c_int = 46;
|
||||||
pub static X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX: c_int = 52;
|
pub const X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX: c_int = 52;
|
||||||
pub static X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE: c_int = 51;
|
pub const X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE: c_int = 51;
|
||||||
pub static X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE: c_int = 45;
|
pub const X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE: c_int = 45;
|
||||||
pub static X509_V_ERR_UNSUPPORTED_NAME_SYNTAX: c_int = 53;
|
pub const X509_V_ERR_UNSUPPORTED_NAME_SYNTAX: c_int = 53;
|
||||||
pub static X509_V_OK: c_int = 0;
|
pub const X509_V_OK: c_int = 0;
|
||||||
|
|
||||||
#[cfg( any( all(target_os = "macos", feature = "tlsv1_1"),all(target_os = "macos", feature = "tlsv1_2")))]
|
#[cfg( any( all(target_os = "macos", feature = "tlsv1_1"),all(target_os = "macos", feature = "tlsv1_2")))]
|
||||||
#[link(name="ssl.1.0.0")]
|
#[link(name="ssl.1.0.0")]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue