diff options
Diffstat (limited to 'MirOTR/otr.cpp')
-rw-r--r-- | MirOTR/otr.cpp | 7 |
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 |