MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / db_key

Function db_key

modules/xmpp/util.c:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158char *db_key(char *secret, char *domain, char *id)
159{
160 char buf[1024];
161 char *hash;
162
163 snprintf(buf, sizeof(buf), "%s", secret);
164 hash = shahash(buf);
165
166 snprintf(buf, sizeof(buf), "%s%s", hash, domain);
167 hash = shahash(buf);
168
169 snprintf(buf, sizeof(buf), "%s%s", hash, id);
170 hash = shahash(buf);
171 return hash;
172}
173

Callers 2

out_stream_node_callbackFunction · 0.85
in_stream_node_callbackFunction · 0.85

Calls 1

shahashFunction · 0.70

Tested by

no test coverage detected