-/* $OpenBSD: rsa_ameth.c,v 1.49 2023/11/08 19:30:38 tb Exp $ */
+/* $OpenBSD: rsa_ameth.c,v 1.50 2023/11/09 08:20:10 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
X509_ALGOR *alg = NULL;
X509_ALGOR *inner_alg = NULL;
ASN1_STRING *astr = NULL;
- ASN1_OBJECT *aobj;
int ret = 0;
X509_ALGOR_free(*out_alg);
if ((alg = X509_ALGOR_new()) == NULL)
goto err;
- if ((aobj = OBJ_nid2obj(NID_mgf1)) == NULL)
- goto err;
- if (!X509_ALGOR_set0(alg, aobj, V_ASN1_SEQUENCE, astr))
+ if (!X509_ALGOR_set0_by_nid(alg, NID_mgf1, V_ASN1_SEQUENCE, astr))
goto err;
astr = NULL;