Skip to content

Commit

Permalink
PERHAPS DISABLING ALL CERTIFICATES WILL FIX MY MAKEFILE. JESUS CHRIST
Browse files Browse the repository at this point in the history
  • Loading branch information
perlisweird committed Mar 23, 2017
1 parent b8d1d8a commit 3d00373
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ authors = ["Perl I. W. <support@frog.tips>"]
log = "0.3.6"
itertools = "0.4.13"
hyper = "0.10.5"
hyper-openssl = "0.2.3"
hyper-native-tls = "0.2"
rustc-serialize = "0.3.19"
getopts = "0.2"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ extern crate itertools;
extern crate rustc_serialize;
extern crate hyper;
extern crate hyper_native_tls;
extern crate hyper_openssl;
extern crate getopts;
extern crate time;

Expand Down
6 changes: 4 additions & 2 deletions src/the_impl_ya_dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ mod tip_source {
use hyper;
use hyper_native_tls;
use rustc_serialize::json;
use hyper_openssl;

use std::io::Read;
use std::io;
Expand Down Expand Up @@ -280,8 +281,9 @@ mod tip_source {
impl TipSource {
pub fn new(api_key: String) -> TipSource {
let client = {
// TODO: GET OUT OF MY DREAMS AND INTO MY CAR
let ssl = hyper_native_tls::NativeTlsClient::new().unwrap();
let mut ssl = hyper_openssl::OpensslClient::new().unwrap();
// FIXME: THANKS YOU NERDS FOR MAKING ME DO THIS
ssl.danger_disable_hostname_verification(true);
let connector = hyper::net::HttpsConnector::new(ssl);
let mut client = hyper::Client::with_connector(connector);
let ten_seconds = Some(::std::time::Duration::from_secs(10));
Expand Down

0 comments on commit 3d00373

Please sign in to comment.