- /* Backwards compatibility checks */
-
- /* Old server versions requires "valid" looking Source ID in the SILC
- packets during initial key exchange. All version before 1.1.0. */
- silc_packet_get_ids(ske->stream, &src_set, NULL, NULL, NULL);
- if (!src_set && !ske->responder && r_software_string &&
- r_software_version < 110) {
- SILC_LOG_DEBUG(("Remote is old version, add dummy Source ID to packets"));
-
- if (strstr(r_software_string, "server")) {
- SilcServerID sid;
- memset(&sid, 0, sizeof(sid));
- sid.ip.data_len = 4;
- silc_packet_set_ids(ske->stream, SILC_ID_SERVER, &sid, 0, NULL);
- }
-
- if (strstr(r_software_string, "client")) {
- SilcClientID cid;
- memset(&cid, 0, sizeof(cid));
- cid.ip.data_len = 4;
- silc_packet_set_ids(ske->stream, SILC_ID_CLIENT, &cid, 0, NULL);
- }
- }
-