From c1be4d617cf9435e8326ebba643aa4d7cbcb3645 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 17 Feb 2021 12:29:39 +0100 Subject: Rename internal X509_add_cert_new() to ossl_x509_add_cert_new() Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14039) --- crypto/ocsp/ocsp_cl.c | 2 +- crypto/ocsp/ocsp_local.h | 2 +- crypto/ocsp/ocsp_srv.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/ocsp') diff --git a/crypto/ocsp/ocsp_cl.c b/crypto/ocsp/ocsp_cl.c index 2d4bd036ad..40d26fb871 100644 --- a/crypto/ocsp/ocsp_cl.c +++ b/crypto/ocsp/ocsp_cl.c @@ -77,7 +77,7 @@ int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert) return 0; if (cert == NULL) return 1; - return X509_add_cert_new(&sig->certs, cert, X509_ADD_FLAG_UP_REF); + return ossl_x509_add_cert_new(&sig->certs, cert, X509_ADD_FLAG_UP_REF); } /* diff --git a/crypto/ocsp/ocsp_local.h b/crypto/ocsp/ocsp_local.h index 1e7de1384f..a7e6e86685 100644 --- a/crypto/ocsp/ocsp_local.h +++ b/crypto/ocsp/ocsp_local.h @@ -7,7 +7,7 @@ * https://www.openssl.org/source/license.html */ -#include "crypto/x509.h" /* for X509_add_cert_new() */ +#include "crypto/x509.h" /* for ossl_x509_add_cert_new() */ /*- CertID ::= SEQUENCE { * hashAlgorithm AlgorithmIdentifier, diff --git a/crypto/ocsp/ocsp_srv.c b/crypto/ocsp/ocsp_srv.c index 2c8b38f723..4a864f2d79 100644 --- a/crypto/ocsp/ocsp_srv.c +++ b/crypto/ocsp/ocsp_srv.c @@ -158,7 +158,7 @@ OCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp, int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert) { - return X509_add_cert_new(&resp->certs, cert, X509_ADD_FLAG_UP_REF); + return ossl_x509_add_cert_new(&resp->certs, cert, X509_ADD_FLAG_UP_REF); } /* -- cgit v1.2.3