Changeset 944d7a5
- Timestamp:
- 2010-10-01T21:36:44Z (14 years ago)
- Branches:
- master
- Children:
- faa75c0e
- Parents:
- f26db4a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
rf26db4a8 r944d7a5 1130 1130 } else { 1131 1131 /* SMP3 received, otrl_message_receiving will have sent SMP4 and set fp trust */ 1132 const char *trust = context->active_fingerprint->trust; 1133 if(!trust || trust[0]=='\0') { 1134 irc_usermsg(irc, "smp %s: secrets did not match, fingerprint not trusted", 1132 /* as noted above, fp trust SHOULD have been set by libotr. 1133 * however at least version 3.2.0 seems to forget it when 1134 * responding to an smp session that was initiated with SMP1Q 1135 * (question and answer); other cases appear to work fine. 1136 * as a workaround, we explicitly set it below. 1137 */ 1138 if(context->smstate->sm_prog_state == OTRL_SMP_PROG_SUCCEEDED) { 1139 otrl_context_set_trust(context->active_fingerprint, "smp"); 1140 irc_usermsg(irc, "smp %s: secrets proved equal, fingerprint trusted", 1135 1141 u->nick); 1136 1142 } else { 1137 irc_usermsg(irc, "smp %s: secrets proved equal, fingerprint trusted", 1143 otrl_context_set_trust(context->active_fingerprint, ""); 1144 irc_usermsg(irc, "smp %s: secrets did not match, fingerprint not trusted", 1138 1145 u->nick); 1139 1146 } … … 1150 1157 } else { 1151 1158 /* SMP4 received, otrl_message_receiving will have set fp trust */ 1152 const char *trust = context->active_fingerprint->trust; 1153 if(!trust || trust[0]=='\0') { 1154 irc_usermsg(irc, "smp %s: secrets did not match, fingerprint not trusted", 1159 if(context->smstate->sm_prog_state == OTRL_SMP_PROG_SUCCEEDED) { 1160 irc_usermsg(irc, "smp %s: secrets proved equal, fingerprint trusted", 1155 1161 u->nick); 1156 1162 } else { 1157 irc_usermsg(irc, "smp %s: secrets proved equal, fingerprint trusted",1163 irc_usermsg(irc, "smp %s: secrets did not match, fingerprint not trusted", 1158 1164 u->nick); 1159 1165 } … … 1202 1208 otrl_sm_state_free(ctx->smstate); 1203 1209 } 1204 1210 1205 1211 if(question) { 1206 1212 /* this was 'otr smpq', just initiate */
Note: See TracChangeset
for help on using the changeset viewer.