From ff99fddff2f855daeedf54d1199a58525ab4b346 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 8 Nov 2023 16:42:18 +0000 Subject: [PATCH] Rename os into astr in rsa_alg_set_oaep_padding() --- lib/libcrypto/rsa/rsa_ameth.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/rsa/rsa_ameth.c b/lib/libcrypto/rsa/rsa_ameth.c index f718a8101a6..ff673d5bd67 100644 --- a/lib/libcrypto/rsa/rsa_ameth.c +++ b/lib/libcrypto/rsa/rsa_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_ameth.c,v 1.45 2023/11/08 16:07:59 tb Exp $ */ +/* $OpenBSD: rsa_ameth.c,v 1.46 2023/11/08 16:42:18 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -913,7 +913,7 @@ rsa_alg_set_oaep_padding(X509_ALGOR *alg, EVP_PKEY_CTX *pkey_ctx) { const EVP_MD *md, *mgf1md; RSA_OAEP_PARAMS *oaep = NULL; - ASN1_STRING *os = NULL; + ASN1_STRING *astr = NULL; unsigned char *label; int labellen; int ret = 0; @@ -952,16 +952,16 @@ rsa_alg_set_oaep_padding(X509_ALGOR *alg, EVP_PKEY_CTX *pkey_ctx) V_ASN1_OCTET_STRING, los); } /* create string with pss parameter encoding. */ - if (!ASN1_item_pack(oaep, &RSA_OAEP_PARAMS_it, &os)) + if ((astr = ASN1_item_pack(oaep, &RSA_OAEP_PARAMS_it, NULL)) == NULL) goto err; - X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaesOaep), V_ASN1_SEQUENCE, os); - os = NULL; + X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaesOaep), V_ASN1_SEQUENCE, astr); + astr = NULL; ret = 1; err: RSA_OAEP_PARAMS_free(oaep); - ASN1_STRING_free(os); + ASN1_STRING_free(astr); return ret; } -- 2.20.1