Because this is the type it should have had from the get go.
ok jsing
-/* $OpenBSD: evp_names.c,v 1.10 2024/03/02 09:41:02 tb Exp $ */
+/* $OpenBSD: evp_names.c,v 1.11 2024/03/02 09:43:10 tb Exp $ */
/*
* Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
*
obj_name->data = cipher->alias;
} else {
obj_name->alias = 0;
- obj_name->data = (const char *)evp_cipher;
+ obj_name->data = evp_cipher;
}
return 1;
obj_name->data = digest->alias;
} else {
obj_name->alias = 0;
- obj_name->data = (const char *)evp_md;
+ obj_name->data = evp_md;
}
return 1;
-/* $OpenBSD: objects.h,v 1.24 2024/03/02 09:41:02 tb Exp $ */
+/* $OpenBSD: objects.h,v 1.25 2024/03/02 09:43:10 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
int type;
int alias;
const char *name;
- const char *data;
+ const void *data;
} OBJ_NAME;
#define OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)