[openssl/openssl] a75f70: apps: silent warning when loading CSR files with v...

Tianjia Zhang noreply at github.com
Wed May 3 07:50:42 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: a75f707fcaaed5c9b26e0ddfc0e0529957a11a1d
      https://github.com/openssl/openssl/commit/a75f707fcaaed5c9b26e0ddfc0e0529957a11a1d
  Author: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M apps/ca.c
    M apps/cmp.c
    M apps/include/apps.h
    M apps/lib/apps.c
    M apps/req.c
    M apps/x509.c

  Log Message:
  -----------
  apps: silent warning when loading CSR files with vfyopt option

When verifying or signing a CSR file with the -vfyopt option,
a warning message similar to the following will appear:

  Warning: CSR self-signature does not match the contents

This happens especially when the SM2 algorithm is used and the
distid parameter is added. Pass the vfyopts parameter to the
do_X509_REQ_verify() function to eliminate the warning message.

Signed-off-by: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20799)




More information about the openssl-commits mailing list