summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/objects/obj_dat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c
index ed8140b54a..a2de78b545 100644
--- a/src/lib/libcrypto/objects/obj_dat.c
+++ b/src/lib/libcrypto/objects/obj_dat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: obj_dat.c,v 1.92 2025/02/26 09:49:54 tb Exp $ */ 1/* $OpenBSD: obj_dat.c,v 1.93 2025/02/26 09:52:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -100,7 +100,7 @@ added_obj_hash(const ADDED_OBJ *ca)
100 a = ca->obj; 100 a = ca->obj;
101 switch (ca->type) { 101 switch (ca->type) {
102 case ADDED_DATA: 102 case ADDED_DATA:
103 ret = a->length << 20L; 103 ret = (unsigned long)a->length << 20L;
104 p = (unsigned char *)a->data; 104 p = (unsigned char *)a->data;
105 for (i = 0; i < a->length; i++) 105 for (i = 0; i < a->length; i++)
106 ret ^= p[i] << ((i * 3) % 24); 106 ret ^= p[i] << ((i * 3) % 24);