-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxx
More file actions
16 lines (14 loc) · 661 Bytes
/
xx
File metadata and controls
16 lines (14 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cfg.ike[i]->IDi = strdup(strcat(ID, i_str));
strcpy(ID, "IkeSim"); // reset ID back to IkeSim
cfg.ike[i]->IDi_len = strlen(cfg.ike[i]->IDi);
// Default identity for Other Server
identity_len = 4;
cfg.ike[i]->IDr = malloc(identity_len);
if (cfg.ike[i]->IDr == NULL) {
perror("\n Cannot allocate IDr");
}
memcpy(cfg.ike[i]->IDr, "Strong", identity_len);
cfg.ike[i]->IDr_len = identity_len;
cfg.ike[i]->IDr[cfg.ike[i]->IDr_len] = '\0'; // for string operations
memcpy(cfg.ike[i]->user_password, "password", 8);
cfg.ike[i]->user_password_len = 8;