summaryrefslogtreecommitdiffstats
blob: 490e16c4d88a9197f3b6f8ca7b1e547ad33ca275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SWIFTEN_TLSLayer_H
#define SWIFTEN_TLSLayer_H

#include "Swiften/StreamStack/StreamLayer.h"
#include "Swiften/TLS/PKCS12Certificate.h"

namespace Swift {
	class TLSLayer : public StreamLayer {
		public:
			virtual void connect() = 0;
			virtual bool setClientCertificate(const PKCS12Certificate&) = 0;

		public:
			boost::signal<void ()> onError;
			boost::signal<void ()> onConnected;
	};
}

#endif