summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradmin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a>2010-09-22 14:23:36 +0000
committeradmin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a>2010-09-22 14:23:36 +0000
commit9e6f693e99170712ef428989cc4e4f2ffce11837 (patch)
tree8aae6aead2080f05bad39084741fd43affc82e01
parent6dc71cda3ff70b007446400df1198a1a0c68c53f (diff)
- changed dialog for option "verify dialog on new fingerprint"
git-svn-id: http://mirotr.googlecode.com/svn/trunk@32 eced67a3-f377-a0ae-92ae-d6de1850b05a
-rw-r--r--MirOTR/otr.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/MirOTR/otr.cpp b/MirOTR/otr.cpp
index 1d9e882..ce7ff1d 100644
--- a/MirOTR/otr.cpp
+++ b/MirOTR/otr.cpp
@@ -226,7 +226,6 @@ extern "C" {
/* A new fingerprint for the given user has been received. */
void otr_gui_new_fingerprint(void *opdata, OtrlUserState us, const char *accountname, const char *protocol, const char *username, unsigned char fingerprint[20]) {
DEBUGOUT_T("OTR_GUI_NEW_FUNGERPRINT")
- //MessageBox(0, username, Translate("OTR New Fingerprint"), MB_OK);
ConnContext *context = otrl_context_find(us, username, accountname, protocol, TRUE, 0, add_appdata, opdata);
Fingerprint *fp = otrl_context_find_fingerprint(context, fingerprint, TRUE, 0);
@@ -253,7 +252,7 @@ extern "C" {
if(trusted == TRUST_PRIVATE) {
mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_START_OTR), contact_get_nameT((HANDLE)opdata));
} else if (trusted == TRUST_UNVERIFIED) {
- if (options.autoshow_verify) VerifyContextDialog(context);
+ if (options.autoshow_verify) SMPInitDialog(context); //VerifyContextDialog(context);
mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_START_OTR_VERIFY), contact_get_nameT((HANDLE)opdata));
} else { // should never happen
mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_NOT_STARTED_OTR), contact_get_nameT((HANDLE)opdata));
@@ -286,7 +285,7 @@ extern "C" {
if(trusted == TRUST_PRIVATE) {
mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_CONTINUE_OTR), contact_get_nameT((HANDLE)opdata));
} else if (trusted == TRUST_UNVERIFIED) {
- if (options.autoshow_verify) VerifyContextDialog(context);
+ if (options.autoshow_verify) SMPInitDialog(context); //VerifyContextDialog(context);
mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_CONTINUE_OTR_VERIFY), contact_get_nameT((HANDLE)opdata));
} else { // should never happen
mir_sntprintf(buff, 1024, TranslateT(LANG_SESSION_NOT_STARTED_OTR), contact_get_nameT((HANDLE)opdata));
@@ -395,5 +394,5 @@ gcry_error_t otrl_privkey_write_FILEp(OtrlUserState us, FILE *privf);
if ( fprintf(privf, ")\n") < 0 )
return gcry_error_from_errno(errno);
return gcry_error(GPG_ERR_NO_ERROR);
-
+
} \ No newline at end of file