From 43ea39990ce9a73337f97fc54add4f906d3a39c4 Mon Sep 17 00:00:00 2001 From: schwarze Date: Fri, 2 Jul 2021 11:15:08 +0000 Subject: [PATCH] call the API function X509_NAME_cmp(3) instead of the obsolete, undocumented macro alias X509_name_cmp(3); no change to the assembler code generated by the compiler; OK tb@ --- lib/libcrypto/ts/ts_rsp_verify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/ts/ts_rsp_verify.c b/lib/libcrypto/ts/ts_rsp_verify.c index c745a2c51f0..46704dfd2be 100644 --- a/lib/libcrypto/ts/ts_rsp_verify.c +++ b/lib/libcrypto/ts/ts_rsp_verify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts_rsp_verify.c,v 1.20 2021/05/02 15:33:33 tb Exp $ */ +/* $OpenBSD: ts_rsp_verify.c,v 1.21 2021/07/02 11:15:08 schwarze Exp $ */ /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL * project 2002. */ @@ -720,7 +720,7 @@ TS_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer) /* Check the subject name first. */ if (tsa_name->type == GEN_DIRNAME && - X509_name_cmp(tsa_name->d.dirn, signer->cert_info->subject) == 0) + X509_NAME_cmp(tsa_name->d.dirn, signer->cert_info->subject) == 0) return 1; /* Check all the alternative names. */ -- 2.20.1