summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/libiris/qca/src/qcaprovider.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/libiris/qca/src/qcaprovider.h')
-rw-r--r--kopete/protocols/jabber/libiris/qca/src/qcaprovider.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/kopete/protocols/jabber/libiris/qca/src/qcaprovider.h b/kopete/protocols/jabber/libiris/qca/src/qcaprovider.h
index 9f4fa1fb..a88b12aa 100644
--- a/kopete/protocols/jabber/libiris/qca/src/qcaprovider.h
+++ b/kopete/protocols/jabber/libiris/qca/src/qcaprovider.h
@@ -1,5 +1,5 @@
/*
- * qcaprovider.h - QCA Plugin API
+ * qcaprovider.h - TQCA Plugin API
* Copyright (C) 2003 Justin Karneges
*
* This library is free software; you can redistribute it and/or
@@ -18,8 +18,8 @@
*
*/
-#ifndef QCAPROVIDER_H
-#define QCAPROVIDER_H
+#ifndef TQCAPROVIDER_H
+#define TQCAPROVIDER_H
#include<tqglobal.h>
#include<tqstring.h>
@@ -28,13 +28,13 @@
#include<tqhostaddress.h>
#include"qca.h"
-#define QCA_PLUGIN_VERSION 1
+#define TQCA_PLUGIN_VERSION 1
-class QCAProvider
+class TQCAProvider
{
public:
- QCAProvider() {}
- virtual ~QCAProvider() {}
+ TQCAProvider() {}
+ virtual ~TQCAProvider() {}
virtual void init()=0;
virtual int qcaVersion() const=0;
@@ -42,23 +42,23 @@ public:
virtual void *context(int cap)=0;
};
-class QCA_HashContext
+class TQCA_HashContext
{
public:
- virtual ~QCA_HashContext() {}
+ virtual ~TQCA_HashContext() {}
- virtual QCA_HashContext *clone()=0;
+ virtual TQCA_HashContext *clone()=0;
virtual void reset()=0;
virtual void update(const char *in, unsigned int len)=0;
virtual void final(TQByteArray *out)=0;
};
-class QCA_CipherContext
+class TQCA_CipherContext
{
public:
- virtual ~QCA_CipherContext() {}
+ virtual ~TQCA_CipherContext() {}
- virtual QCA_CipherContext *clone()=0;
+ virtual TQCA_CipherContext *clone()=0;
virtual int keySize()=0;
virtual int blockSize()=0;
virtual bool generateKey(char *out, int keysize=-1)=0;
@@ -69,12 +69,12 @@ public:
virtual bool final(TQByteArray *out)=0;
};
-class QCA_RSAKeyContext
+class TQCA_RSAKeyContext
{
public:
- virtual ~QCA_RSAKeyContext() {}
+ virtual ~TQCA_RSAKeyContext() {}
- virtual QCA_RSAKeyContext *clone() const=0;
+ virtual TQCA_RSAKeyContext *clone() const=0;
virtual bool isNull() const=0;
virtual bool havePublic() const=0;
virtual bool havePrivate() const=0;
@@ -89,18 +89,18 @@ public:
virtual bool decrypt(const TQByteArray &in, TQByteArray *out, bool oaep)=0;
};
-struct QCA_CertProperty
+struct TQCA_CertProperty
{
TQString var;
TQString val;
};
-class QCA_CertContext
+class TQCA_CertContext
{
public:
- virtual ~QCA_CertContext() {}
+ virtual ~TQCA_CertContext() {}
- virtual QCA_CertContext *clone() const=0;
+ virtual TQCA_CertContext *clone() const=0;
virtual bool isNull() const=0;
virtual bool createFromDER(const char *in, unsigned int len)=0;
virtual bool createFromPEM(const char *in, unsigned int len)=0;
@@ -110,22 +110,22 @@ public:
virtual TQString serialNumber() const=0;
virtual TQString subjectString() const=0;
virtual TQString issuerString() const=0;
- virtual TQValueList<QCA_CertProperty> subject() const=0;
- virtual TQValueList<QCA_CertProperty> issuer() const=0;
+ virtual TQValueList<TQCA_CertProperty> subject() const=0;
+ virtual TQValueList<TQCA_CertProperty> issuer() const=0;
virtual TQDateTime notBefore() const=0;
virtual TQDateTime notAfter() const=0;
virtual bool matchesAddress(const TQString &realHost) const=0;
};
-class QCA_TLSContext
+class TQCA_TLSContext
{
public:
enum Result { Success, Error, Continue };
- virtual ~QCA_TLSContext() {}
+ virtual ~TQCA_TLSContext() {}
virtual void reset()=0;
- virtual bool startClient(const TQPtrList<QCA_CertContext> &store, const QCA_CertContext &cert, const QCA_RSAKeyContext &key)=0;
- virtual bool startServer(const TQPtrList<QCA_CertContext> &store, const QCA_CertContext &cert, const QCA_RSAKeyContext &key)=0;
+ virtual bool startClient(const TQPtrList<TQCA_CertContext> &store, const TQCA_CertContext &cert, const TQCA_RSAKeyContext &key)=0;
+ virtual bool startServer(const TQPtrList<TQCA_CertContext> &store, const TQCA_CertContext &cert, const TQCA_RSAKeyContext &key)=0;
virtual int handshake(const TQByteArray &in, TQByteArray *out)=0;
virtual int shutdown(const TQByteArray &in, TQByteArray *out)=0;
@@ -134,30 +134,30 @@ public:
virtual bool eof() const=0;
virtual TQByteArray unprocessed()=0;
- virtual QCA_CertContext *peerCertificate() const=0;
+ virtual TQCA_CertContext *peerCertificate() const=0;
virtual int validityResult() const=0;
};
-struct QCA_SASLHostPort
+struct TQCA_SASLHostPort
{
TQHostAddress addr;
TQ_UINT16 port;
};
-struct QCA_SASLNeedParams
+struct TQCA_SASLNeedParams
{
bool user, authzid, pass, realm;
};
-class QCA_SASLContext
+class TQCA_SASLContext
{
public:
enum Result { Success, Error, NeedParams, AuthCheck, Continue };
- virtual ~QCA_SASLContext() {}
+ virtual ~TQCA_SASLContext() {}
// common
virtual void reset()=0;
- virtual void setCoreProps(const TQString &service, const TQString &host, QCA_SASLHostPort *local, QCA_SASLHostPort *remote)=0;
+ virtual void setCoreProps(const TQString &service, const TQString &host, TQCA_SASLHostPort *local, TQCA_SASLHostPort *remote)=0;
virtual void setSecurityProps(bool noPlain, bool noActive, bool noDict, bool noAnon, bool reqForward, bool reqCreds, bool reqMutual, int ssfMin, int ssfMax, const TQString &_ext_authid, int _ext_ssf)=0;
virtual int security() const=0;
virtual int errorCond() const=0;
@@ -169,7 +169,7 @@ public:
virtual int serverFirstStep(const TQString &mech, const TQByteArray *in)=0;
// get / set params
- virtual QCA_SASLNeedParams clientParamsNeeded() const=0;
+ virtual TQCA_SASLNeedParams clientParamsNeeded() const=0;
virtual void setClientParams(const TQString *user, const TQString *authzid, const TQString *pass, const TQString *realm)=0;
virtual TQString username() const=0;
virtual TQString authzid() const=0;