~ubuntu-branches/debian/experimental/kopete/experimental

« back to all changes in this revision

Viewing changes to protocols/jabber/libjingle/patches/07_disable_ssl_verification.patch

  • Committer: Package Import Robot
  • Author(s): Maximiliano Curia
  • Date: 2015-02-24 11:32:57 UTC
  • mfrom: (1.1.41 vivid)
  • Revision ID: package-import@ubuntu.com-20150224113257-gnupg4v7lzz18ij0
Tags: 4:14.12.2-1
* New upstream release (14.12.2).
* Bump Standards-Version to 3.9.6, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff --git a/protocols/jabber/googletalk/libjingle/talk/examples/call/call_main.cc b/protocols/jabber/googletalk/libjingle/talk/examples/call/call_main.cc
 
2
index 66602c4..04134ca 100644
 
3
--- a/protocols/jabber/googletalk/libjingle/talk/examples/call/call_main.cc
 
4
+++ b/protocols/jabber/googletalk/libjingle/talk/examples/call/call_main.cc
 
5
@@ -200,6 +200,10 @@ void Print(const char* chars) {
 
6
   fflush(stdout);
 
7
 }
 
8
 
 
9
+bool SSLVerificationCallback(void* cert) {
 
10
+  return true;
 
11
+}
 
12
+
 
13
 int main(int argc, char **argv) {
 
14
   // This app has three threads. The main thread will run the XMPP client,
 
15
   // which will print to the screen in its own thread. A second thread
 
16
@@ -360,7 +364,7 @@ int main(int argc, char **argv) {
 
17
   xcs.set_server(talk_base::SocketAddress(host, port));
 
18
   Print(("Logging in to " + server + " as " + jid.Str() + "\n").c_str());
 
19
 
 
20
-  talk_base::InitializeSSL();
 
21
+  talk_base::InitializeSSL(SSLVerificationCallback);
 
22
 
 
23
 #ifdef ANDROID
 
24
   InitAndroidMediaEngineFactory(AndroidMediaEngineFactory);