Skip to content

Commit 455e22c

Browse files
committed
Rename io module to tls
1 parent 17a5ab3 commit 455e22c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
//!
5757
//! use postgres::{Connection, TlsMode};
5858
//! # #[cfg(feature = "with-openssl")]
59-
//! use postgres::io::openssl::OpenSsl;
59+
//! use postgres::tls::openssl::OpenSsl;
6060
//!
6161
//! # #[cfg(not(feature = "with-openssl"))] fn main() {}
6262
//! # #[cfg(feature = "with-openssl")]
@@ -93,7 +93,7 @@ use postgres_protocol::message::backend::{self, RowDescriptionEntry};
9393
use postgres_protocol::message::frontend;
9494

9595
use error::{Error, ConnectError, SqlState, DbError};
96-
use io::TlsHandshake;
96+
use tls::TlsHandshake;
9797
use notification::{Notifications, Notification};
9898
use params::{ConnectParams, IntoConnectParams, UserInfo};
9999
use priv_io::MessageStream;
@@ -109,7 +109,7 @@ mod feature_check;
109109
mod priv_io;
110110
mod url;
111111
pub mod error;
112-
pub mod io;
112+
pub mod tls;
113113
pub mod notification;
114114
pub mod params;
115115
pub mod rows;

src/priv_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use postgres_protocol::message::backend::{self, ParseResult};
1515

1616
use TlsMode;
1717
use error::ConnectError;
18-
use io::TlsStream;
18+
use tls::TlsStream;
1919
use params::{ConnectParams, ConnectTarget};
2020

2121
const DEFAULT_PORT: u16 = 5432;
File renamed without changes.

src/io/openssl.rs renamed to src/tls/openssl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use self::openssl::error::ErrorStack;
88
use self::openssl::ssl::{IntoSsl, SslContext, SslStream, SslMethod, SSL_VERIFY_PEER,
99
SSL_OP_NO_SSLV2, SSL_OP_NO_SSLV3, SSL_OP_NO_COMPRESSION};
1010
use self::openssl_verify::verify_callback;
11-
use io::{TlsStream, Stream, TlsHandshake};
11+
use tls::{TlsStream, Stream, TlsHandshake};
1212

1313
impl TlsStream for SslStream<Stream> {
1414
fn get_ref(&self) -> &Stream {

src/io/security_framework.rs renamed to src/tls/security_framework.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
extern crate security_framework;
33

44
use self::security_framework::secure_transport::{SslStream, ClientBuilder};
5-
use io::{Stream, TlsStream, TlsHandshake};
5+
use tls::{Stream, TlsStream, TlsHandshake};
66
use std::error::Error;
77

88
impl TlsStream for SslStream<Stream> {

0 commit comments

Comments
 (0)