X509: Rename X509_set0_sm2_id() and friends
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Mar 2020 21:50:22 +0000 (22:50 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 15 Mar 2020 18:42:04 +0000 (19:42 +0100)
commit70a7dd6f96c28a1a3059bf3d175bfb24449202ae
treebed8cc22e8013b51568f4b8cf3e04bf55891bf6e
parenta5ce329eb496eb7ae17d6198dac51c2ab417550e
X509: Rename X509_set0_sm2_id() and friends

- X509_set0_sm2_id() -> X509_set0_distinguishing_id()
- X509_get0_sm2_id() -> X509_get0_distinguishing_id()
- X509_REQ_set0_sm2_id -> X509_REQ_set0_distinguishing_id()
- X509_REQ_get0_sm2_id -> X509_REQ_get0_distinguishing_id()

The reason for this rename is that the SM2 ID isn't really a unique
SM2 data item, but rather a re-use of the Distinguished that is
defined in ISO/IEC 15946-3 as well as in FIPS 196, with no special
attribution toward any algorithm in particular.

Fixes #11293

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/11302)
crypto/x509/x_all.c
crypto/x509/x_req.c
crypto/x509/x_x509.c
doc/man3/X509_get0_distinguishing_id.pod [new file with mode: 0644]
doc/man3/X509_get0_sm2_id.pod [deleted file]
include/crypto/x509.h
include/openssl/x509.h
util/libcrypto.num