- if (mode && ((!strcasecmp(mode, "crc32")) || (!strcasecmp(mode, "crc32b")))) {
- *((uint *) ctx) = ~*((uint *) ctx);
- etag = php_http_etag_digest((const unsigned char *) ctx, sizeof(uint));
- } else if (mode && (!strcasecmp(mode, "sha1"))) {
- PHP_SHA1Final(digest, ctx);
+ if (((!strcasecmp(e->mode, "crc32")) || (!strcasecmp(e->mode, "crc32b")))) {
+ *((uint *) e->ctx) = ~*((uint *) e->ctx);
+ etag = php_http_etag_digest((const unsigned char *) e->ctx, sizeof(uint));
+ } else if ((!strcasecmp(e->mode, "sha1"))) {
+ PHP_SHA1Final(digest, e->ctx);