summaryrefslogtreecommitdiffstats
path: root/lib/libtdekrb/src/tdekrbclientsocket.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-29 01:49:29 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-29 01:49:29 -0500
commit1f8f9ca9434d9e2c0d7e7e061b7177009fd504df (patch)
tree1b793132751d6bce670bf853f70fd1f34721eecc /lib/libtdekrb/src/tdekrbclientsocket.h
parente89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c (diff)
downloadulab-1f8f9ca9434d9e2c0d7e7e061b7177009fd504df.tar.gz
ulab-1f8f9ca9434d9e2c0d7e7e061b7177009fd504df.zip
Convert krb server socket to stateful operation
Do the same to the server daemons and the MDI frame client
Diffstat (limited to 'lib/libtdekrb/src/tdekrbclientsocket.h')
-rw-r--r--lib/libtdekrb/src/tdekrbclientsocket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libtdekrb/src/tdekrbclientsocket.h b/lib/libtdekrb/src/tdekrbclientsocket.h
index 48ec09a..8f4a287 100644
--- a/lib/libtdekrb/src/tdekrbclientsocket.h
+++ b/lib/libtdekrb/src/tdekrbclientsocket.h
@@ -62,6 +62,8 @@ class TDEKerberosClientSocket : public TQSocket
void setServiceName(TQString name);
void setServerFQDN(TQString name);
+ void setDataTimeout(int timeoutms);
+
KerberosStatus kerberosStatus() const;
private:
@@ -71,10 +73,14 @@ class TDEKerberosClientSocket : public TQSocket
int getSASLDataFromNetwork(char *buf, int trunclen, bool shouldblock=true);
int transmitEncryptedData(int fd, const char* readbuf, int cc);
int receiveEncryptedData(char *buf, unsigned int trunclen, bool shouldblock=true);
+ void setStatusMessage(TQString message);
private slots:
void continueKerberosInitialization();
+ signals:
+ void statusMessageUpdated(const TQString&);
+
private:
bool m_kerberosRequested;
TQString m_serviceName;
@@ -84,6 +90,8 @@ class TDEKerberosClientSocket : public TQSocket
long m_bufferLength;
bool m_krbInitRunning;
int m_krbInitState;
+ TQString m_prevStatusMessage;
+ int m_dataTimeout;
bool* m_canary;
private: