summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/part/fpgaview/part.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-28 22:30:14 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-28 22:30:14 -0500
commite89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c (patch)
tree082b8c247ba91b735394a9ba8d4f87bf416a389f /clients/tde/src/part/fpgaview/part.cpp
parent65ea633f475c7ab2b524dc1ffb369f6607df3e6b (diff)
downloadulab-e89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c.tar.gz
ulab-e89735d72ae3b320c33f7ad95c3cbc9ea6d42f6c.zip
Convert krb client socket to stateful init
Diffstat (limited to 'clients/tde/src/part/fpgaview/part.cpp')
-rw-r--r--clients/tde/src/part/fpgaview/part.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clients/tde/src/part/fpgaview/part.cpp b/clients/tde/src/part/fpgaview/part.cpp
index 52a1d92..2b3cf8d 100644
--- a/clients/tde/src/part/fpgaview/part.cpp
+++ b/clients/tde/src/part/fpgaview/part.cpp
@@ -158,8 +158,12 @@ printf("[RAJA DEBUG 200.1] In FPGAViewPart::connectToServer TRIED TO CONNECT TWI
if (m_socket->state() != TQSocket::Connected) {
return -1;
}
- if (m_socket->setUsingKerberos(true) != 0) {
+ m_socket->setUsingKerberos(true);
+ while (m_socket->kerberosStatus() == TDEKerberosClientSocket::KerberosInitializing) {
+ tqApp->eventLoop()->processEvents(TQEventLoop::AllEvents);
if (!m_socket) return -1; // Any entry into the event loop could end up deleting the socket object depending on user interaction
+ }
+ if (m_socket->kerberosStatus() != TDEKerberosClientSocket::KerberosInUse) {
m_socket->close();
KMessageBox::error(0, i18n("<qt>Unable to establish Kerberos protocol with remote server<p>Please verify that you currently hold a valid Kerberos ticket</qt>"), i18n("Connection Failed"));
return -1;