summaryrefslogtreecommitdiffstats
path: root/src/crypto.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-07-27 16:57:53 +0200
committerSlávek Banko <[email protected]>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/crypto.h
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/crypto.h b/src/crypto.h
index 92c6094..6efa086 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -91,8 +91,8 @@
#define S2K_SPECIFIER_LEN 9
-#include <qmap.h>
-#include <qstring.h>
+#include <ntqmap.h>
+#include <ntqstring.h>
typedef struct crypto_digest_env_t crypto_digest_env_t;
@@ -105,18 +105,18 @@ int digest_to_base64(char *d64, const char *digest);
int base64_encode(char *dest, size_t destlen, const char *src, size_t srclen);
int base16_decode(char *dest, size_t destlen, const char *src, size_t srclen);
-QString getFPDigestFromFP(const QString &fp);
-QString getNickNameFromFPDigest(const QString &fpdigest);
-QString getNickNameFromFP(const QString &fp);
-QString getFPFromNickName(const QString &nickname);
-QString getFPFromFPDigest(const QString &fp);
-void storeServer(const QString &server,const QString &fp_identity);
+TQString getFPDigestFromFP(const TQString &fp);
+TQString getNickNameFromFPDigest(const TQString &fpdigest);
+TQString getNickNameFromFP(const TQString &fp);
+TQString getFPFromNickName(const TQString &nickname);
+TQString getFPFromFPDigest(const TQString &fp);
+void storeServer(const TQString &server,const TQString &fp_identity);
void clearServers();
-QString fp_identity(const QString &server);
-QString server(const QString &fp_identity);
-QString hashPassword(const char* secret);
+TQString fp_identity(const TQString &server);
+TQString server(const TQString &fp_identity);
+TQString hashPassword(const char* secret);
-QString crypto_rand_string(int len);
+TQString crypto_rand_string(int len);
/* random numbers */
int crypto_seed_rng(void);