Changeset 4608
- Timestamp:
- 11/10/08 17:43:15 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/charon/plugins/load_tester/load_tester_config.c
r4568 r4608 63 63 * implements backend_t.get_peer_cfg_by_name. 64 64 */ 65 static peer_cfg_t *get_peer_cfg_by_name(private_load_tester_config_t *this, char *name) 65 static peer_cfg_t *get_peer_cfg_by_name(private_load_tester_config_t *this, 66 char *name) 66 67 { 67 return this->peer_cfg->get_ref(this->peer_cfg);; 68 if (streq(name, "load-test")) 69 { 70 return this->peer_cfg->get_ref(this->peer_cfg);; 71 } 72 return NULL; 68 73 } 69 74 trunk/src/charon/plugins/load_tester/load_tester_creds.c
r4604 r4608 158 158 key_type_t type, identification_t *id) 159 159 { 160 if (this->private == NULL) 161 { 162 return NULL; 163 } 160 164 if (type != KEY_ANY && type != KEY_RSA) 161 165 { … … 182 186 identification_t *id, bool trusted) 183 187 { 188 if (this->cert == NULL) 189 { 190 return NULL; 191 } 184 192 if (cert != CERT_ANY && cert != CERT_X509) 185 193 { … … 202 210 static void destroy(private_load_tester_creds_t *this) 203 211 { 204 this->private->destroy(this->private);205 this->cert->destroy(this->cert);212 DESTROY_IF(this->private); 213 DESTROY_IF(this->cert); 206 214 free(this); 207 215 }
