예제 #1
0
파일: ice.c 프로젝트: Zodiac-Evil/rtpengine
static void create_random_ice_string(struct call *call, str *s, int len) {
	char buf[30];

	assert(len < sizeof(buf));
	if (s->s)
		return;

	random_ice_string(buf, len);
	call_str_cpy_len(call, s, buf, len);
}
예제 #2
0
파일: ice.c 프로젝트: Zodiac-Evil/rtpengine
void ice_foundation(struct interface_address *ifa) {
	random_ice_string(ifa->foundation_buf, sizeof(ifa->foundation_buf));
	str_init_len(&ifa->ice_foundation, ifa->foundation_buf, sizeof(ifa->foundation_buf));
}
예제 #3
0
파일: ice.c 프로젝트: gnufreex/rtpengine
void ice_foundation(str *s) {
	str_init_len(s, malloc(ICE_FOUNDATION_LENGTH), ICE_FOUNDATION_LENGTH);
	random_ice_string(s->s, ICE_FOUNDATION_LENGTH);
}