bin/varnishd/cache/cache_vrt.c
VCL_VOID
VRT_hashdata(VRT_CTX, VCL_STRANDS s)
{
	int i;

	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
	CHECK_OBJ_NOTNULL(ctx->req, REQ_MAGIC);
	AN(ctx->specific);
	AN(s);
	for (i = 0; i < s->n; i++)
		HSH_AddString(ctx->req, ctx->specific, s->p[i]);
	/*
	 * Add a 'field-separator' to make it more difficult to
	 * manipulate the hash.
	 */
	HSH_AddString(ctx->req, ctx->specific, NULL);
}
/*--------------------------------------------------------------------
 * Feed data into the hash calculation
 */
Feed data into the hash calculation
Feed data into the hash calculation
VCL_VOID
VRT_hashdata(VRT_CTX, VCL_STRANDS s)
{
	int i;
	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
	CHECK_OBJ_NOTNULL(ctx->req, REQ_MAGIC);
	AN(ctx->specific);
	AN(s);
	for (i = 0; i < s->n; i++)
		HSH_AddString(ctx->req, ctx->specific, s->p[i]);
	HSH_AddString(ctx->req, ctx->specific, NULL);
}
VCL_VOID VRT_hashdata ( VRT_CTX , VCL_STRANDS s ) { int i ; CHECK_OBJ_NOTNULL ( ctx , VRT_CTX_MAGIC ) ; CHECK_OBJ_NOTNULL ( ctx -> req , REQ_MAGIC ) ; AN ( ctx -> specific ) ; AN ( s ) ; for ( i = 0 ; i < s -> n ; i ++ ) HSH_AddString ( ctx -> req , ctx -> specific , s -> p [ i ] ) ; HSH_AddString ( ctx -> req , ctx -> specific , NULL ) ; }
Feed data into the hash calculation
Feed data into the hash calculation
/*
	 * Add a 'field-separator' to make it more difficult to
	 * manipulate the hash.
	 */