summaryrefslogtreecommitdiffstats
path: root/crypto/objects/obj_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-12-13 17:15:03 +0000
committerRichard Levitte <levitte@openssl.org>2000-12-13 17:15:03 +0000
commit8d28d5f81b81f68a69db1c67e24bcfc092614346 (patch)
tree3391f9ea36d1b9655ffd8e9065de14a5284c5556 /crypto/objects/obj_lib.c
parent53b407da84909dffb54c44dc8a1106723a23a546 (diff)
Constification of the data of a hash table. This means the callback
functions need to be constified, and therefore meant a number of easy changes a little everywhere. Now, if someone could explain to me why OBJ_dup() cheats...
Diffstat (limited to 'crypto/objects/obj_lib.c')
-rw-r--r--crypto/objects/obj_lib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/objects/obj_lib.c b/crypto/objects/obj_lib.c
index 0c71639eba..b0b0f2ff24 100644
--- a/crypto/objects/obj_lib.c
+++ b/crypto/objects/obj_lib.c
@@ -62,7 +62,7 @@
#include <openssl/objects.h>
#include <openssl/buffer.h>
-ASN1_OBJECT *OBJ_dup(ASN1_OBJECT *o)
+ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *o)
{
ASN1_OBJECT *r;
int i;
@@ -70,7 +70,8 @@ ASN1_OBJECT *OBJ_dup(ASN1_OBJECT *o)
if (o == NULL) return(NULL);
if (!(o->flags & ASN1_OBJECT_FLAG_DYNAMIC))
- return(o);
+ return((ASN1_OBJECT *)o); /* XXX: ugh! Why? What kind of
+ duplication is this??? */
r=ASN1_OBJECT_new();
if (r == NULL)
@@ -116,7 +117,7 @@ err:
return(NULL);
}
-int OBJ_cmp(ASN1_OBJECT *a, ASN1_OBJECT *b)
+int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b)
{
int ret;