1
0
mirror of https://github.com/openbsd/src.git synced 2026-05-01 17:46:35 +00:00

Create the signedObject OID via OBJ_dup(signedobj_oid)

This is needed for compatibility with OpenSSL 1.1 which we nominally still
support.

Found and tested by benno
This commit is contained in:
tb
2025-09-19 21:12:56 +00:00
parent b934710c69
commit 855190e675

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: ccr.c,v 1.15 2025/09/19 11:52:20 job Exp $ */
/* $OpenBSD: ccr.c,v 1.16 2025/09/19 21:12:56 tb Exp $ */
/*
* Copyright (c) 2025 Job Snijders <job@openbsd.org>
*
@@ -248,7 +248,7 @@ location_add_sia(STACK_OF(ACCESS_DESCRIPTION) *sad, const char *sia)
errx(1, "ACCESS_DESCRIPTION_new");
ASN1_OBJECT_free(ad->method);
if ((ad->method = OBJ_nid2obj(NID_signedObject)) == NULL)
if ((ad->method = OBJ_dup(signedobj_oid)) == NULL)
errx(1, "OBJ_nid2obj");
GENERAL_NAME_free(ad->location);