PeerConnectionClient needs to initialize SSL.
BUG=2911
R=fischman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/8499004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5531 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/talk/examples/peerconnection/client/linux/main.cc b/talk/examples/peerconnection/client/linux/main.cc
index aee1bb1..4ef81cd 100644
--- a/talk/examples/peerconnection/client/linux/main.cc
+++ b/talk/examples/peerconnection/client/linux/main.cc
@@ -32,6 +32,7 @@
#include "talk/examples/peerconnection/client/linux/main_wnd.h"
#include "talk/examples/peerconnection/client/peer_connection_client.h"
+#include "talk/base/ssladapter.h"
#include "talk/base/thread.h"
class CustomSocketServer : public talk_base::PhysicalSocketServer {
@@ -94,6 +95,7 @@
CustomSocketServer socket_server(thread, &wnd);
thread->set_socketserver(&socket_server);
+ talk_base::InitializeSSL();
// Must be constructed after we set the socketserver.
PeerConnectionClient client;
talk_base::scoped_refptr<Conductor> conductor(
@@ -111,7 +113,7 @@
//while (gtk_events_pending()) {
// gtk_main_iteration();
//}
-
+ talk_base::CleanupSSL();
return 0;
}