We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d9e98 commit d638f86Copy full SHA for d638f86
ssl/mod.rs
@@ -70,6 +70,7 @@ impl SslMethod {
70
}
71
72
/// Determines the type of certificate verification used
73
+#[repr(i32)]
74
pub enum SslVerifyMode {
75
/// Verify that the server's certificate is trusted
76
SslVerifyPeer = ffi::SSL_VERIFY_PEER,
@@ -212,6 +213,7 @@ pub struct X509Name<'x> {
212
213
name: *mut ffi::X509_NAME
214
215
216
+#[repr(u64)]
217
pub enum X509NameFormat {
218
Rfc2253 = ffi::XN_FLAG_RFC2253,
219
Oneline = ffi::XN_FLAG_ONELINE,
@@ -370,6 +372,7 @@ impl Ssl {
370
372
371
373
374
#[deriving(FromPrimitive)]
375
376
enum LibSslError {
377
ErrorNone = ffi::SSL_ERROR_NONE,
378
ErrorSsl = ffi::SSL_ERROR_SSL,
0 commit comments