diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-06 14:15:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-06 14:15:01 -0600 |
commit | 1b89319fd93b88313cab40f1e9de24c067b04efb (patch) | |
tree | 80132996de993c3dcab4040864d7729842875b2d /src/ciscopasswddecoder.h | |
parent | d08a0ede1d2cb15bb14b0ff75eacf5c682b1fa0a (diff) | |
download | kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.tar.gz kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.zip |
Initial TQt conversion
Diffstat (limited to 'src/ciscopasswddecoder.h')
-rw-r--r-- | src/ciscopasswddecoder.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ciscopasswddecoder.h b/src/ciscopasswddecoder.h index f73f702..392a667 100644 --- a/src/ciscopasswddecoder.h +++ b/src/ciscopasswddecoder.h @@ -23,8 +23,8 @@ #include <iostream> #include <string> #include <fstream> -#include <qstring.h> -// #include <qchar.h> +#include <tqstring.h> +// #include <tqchar.h> #include <stdio.h> #include <stdlib.h> @@ -41,16 +41,16 @@ using namespace std; class CiscoPasswdDecoder { public: - CiscoPasswdDecoder(QString& profileFile); + CiscoPasswdDecoder(TQString& profileFile); ~CiscoPasswdDecoder(); - bool decodePasswords(QString& userPasswd, QString& groupPasswd); + bool decodePasswords(TQString& userPasswd, TQString& groupPasswd); private: - void readProfileData(QString& profile, QString& userData, QString& groupData); - QString profile; + void readProfileData(TQString& profile, TQString& userData, TQString& groupData); + TQString profile; int hex2bin_c(unsigned int c); - int hex2bin(QString str, QString& bin, int& len); - int c_decrypt(QString ct, int len, char **resp, int reslenp); + int hex2bin(TQString str, TQString& bin, int& len); + int c_decrypt(TQString ct, int len, char **resp, int reslenp); }; |