summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-07-02 11:15:08 +0000
committerschwarze <>2021-07-02 11:15:08 +0000
commit62f64ee1a71795093870776634f13301611426df (patch)
tree636e571ed14dc20d8cee4e00f556d074bac6af31
parent250b40f66ce1b66057719a029baafbbf25fcbd98 (diff)
downloadopenbsd-62f64ee1a71795093870776634f13301611426df.tar.gz
openbsd-62f64ee1a71795093870776634f13301611426df.tar.bz2
openbsd-62f64ee1a71795093870776634f13301611426df.zip
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@
-rw-r--r--src/lib/libcrypto/ts/ts_rsp_verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_verify.c b/src/lib/libcrypto/ts/ts_rsp_verify.c
index c745a2c51f..46704dfd2b 100644
--- a/src/lib/libcrypto/ts/ts_rsp_verify.c
+++ b/src/lib/libcrypto/ts/ts_rsp_verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts_rsp_verify.c,v 1.20 2021/05/02 15:33:33 tb Exp $ */ 1/* $OpenBSD: ts_rsp_verify.c,v 1.21 2021/07/02 11:15:08 schwarze Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -720,7 +720,7 @@ TS_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer)
720 720
721 /* Check the subject name first. */ 721 /* Check the subject name first. */
722 if (tsa_name->type == GEN_DIRNAME && 722 if (tsa_name->type == GEN_DIRNAME &&
723 X509_name_cmp(tsa_name->d.dirn, signer->cert_info->subject) == 0) 723 X509_NAME_cmp(tsa_name->d.dirn, signer->cert_info->subject) == 0)
724 return 1; 724 return 1;
725 725
726 /* Check all the alternative names. */ 726 /* Check all the alternative names. */