aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/jabber.h
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-01 22:10:33 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-01 22:10:33 +0000
commit0468ce965ba8aedffe65713a74f1ec082f269d67 (patch)
tree9ebd302008b72aa900ba72873291520ed651dc4a /include/asterisk/jabber.h
parent23373716db61af1d1f68ed80ffdad6c6d0819dcf (diff)
Switch res_jabber to use openssl rather than gnutls.
Closes issue #9972, patch by phsultan. Copied from branch at http://svn.digium.com/svn/asterisk/team/phsultan/res_jabber-openssl/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88164 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/jabber.h')
-rw-r--r--include/asterisk/jabber.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asterisk/jabber.h b/include/asterisk/jabber.h
index 83ba0b1b6..89fdd1a91 100644
--- a/include/asterisk/jabber.h
+++ b/include/asterisk/jabber.h
@@ -45,6 +45,19 @@
#ifndef _ASTERISK_JABBER_H
#define _ASTERISK_JABBER_H
+#ifdef HAVE_OPENSSL
+
+#include <openssl/ssl.h>
+#include <openssl/err.h>
+#define TRY_SECURE 2
+#define SECURE 4
+/* file is read by blocks with this size */
+#define NET_IO_BUF_SIZE 4096
+/* Return value for timeout connection expiration */
+#define IKS_NET_EXPIRED 12
+
+#endif /* HAVE_OPENSSL */
+
#include <iksemel.h>
#include "asterisk/astobj.h"
#include "asterisk/linkedlists.h"
@@ -132,12 +145,19 @@ struct aji_client {
char user[AJI_MAX_JIDLEN];
char serverhost[AJI_MAX_RESJIDLEN];
char statusmessage[256];
+ char name_space[256];
char sid[10]; /* Session ID */
char mid[6]; /* Message ID */
iksid *jid;
iksparser *p;
iksfilter *f;
ikstack *stack;
+#ifdef HAVE_OPENSSL
+ SSL_CTX *ssl_context;
+ SSL *ssl_session;
+ SSL_METHOD *ssl_method;
+ unsigned int stream_flags;
+#endif /* HAVE_OPENSSL */
enum aji_state state;
int port;
int debug;