Fix typo and create compatibility macro
authorAndreas Schnebinger <andi.schnebinger@googlemail.com>
Sat, 12 Oct 2019 16:48:40 +0000 (18:48 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Wed, 16 Oct 2019 10:37:20 +0000 (12:37 +0200)
CLA:trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/9472)

apps/ts.c
crypto/ts/ts_verify_ctx.c
include/openssl/ts.h
util/libcrypto.num
util/missingcrypto.txt
util/missingmacro.txt

index aef74adce831fbe30fb06aa1a37f009b8e9373d8..b45c262789ff30001f449664916cbfe57ad922fb 100644 (file)
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -921,7 +921,7 @@ static TS_VERIFY_CTX *create_verify_ctx(const char *data, const char *digest,
 
     /* Loading untrusted certificates. */
     if (untrusted
-        && TS_VERIFY_CTS_set_certs(ctx, TS_CONF_load_certs(untrusted)) == NULL)
+        && TS_VERIFY_CTX_set_certs(ctx, TS_CONF_load_certs(untrusted)) == NULL)
         goto err;
     ret = 1;
 
index e2a4ee477baf937f54649e18d0d4641a1cd4c7f0..3c8340137fe4781a38d0a58ca618515203dfc87d 100644 (file)
@@ -60,7 +60,7 @@ X509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s)
     return ctx->store;
 }
 
-STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx,
+STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx,
                                         STACK_OF(X509) *certs)
 {
     ctx->certs = certs;
index 231d6052f988661575fcd059d2104f22712a0d53..6bd1f89152b9caa34c7ed75f6a4a69f0674e0a1b 100644 (file)
@@ -421,7 +421,10 @@ BIO *TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *b);
 unsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,
                                          unsigned char *hexstr, long len);
 X509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s);
-STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);
+# if !OPENSSL_API_3
+#  define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx,cert)
+# endif
+STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);
 
 /*-
  * If ctx is NULL, it allocates and returns a new object, otherwise
index 5db70cfef84d79b938099bc516c27e65fdba1fbb..d8181979650985af7785142a85c8b232ef0e96d3 100644 (file)
@@ -916,7 +916,7 @@ TS_TST_INFO_ext_free                    938 3_0_0   EXIST::FUNCTION:TS
 i2d_X509_CRL_fp                         939    3_0_0   EXIST::FUNCTION:STDIO
 PKCS7_get0_signers                      940    3_0_0   EXIST::FUNCTION:
 X509_STORE_CTX_set_ex_data              941    3_0_0   EXIST::FUNCTION:
-TS_VERIFY_CTS_set_certs                 942    3_0_0   EXIST::FUNCTION:TS
+TS_VERIFY_CTX_set_certs                 942    3_0_0   EXIST::FUNCTION:TS
 BN_MONT_CTX_copy                        943    3_0_0   EXIST::FUNCTION:
 OPENSSL_INIT_new                        945    3_0_0   EXIST::FUNCTION:
 TS_ACCURACY_dup                         946    3_0_0   EXIST::FUNCTION:TS
index 08dc6be186b550c63cb8dd685c6583b95e161b35..408e6ffc63c3cf3d475140f0f3f0ca4ca56b5860 100644 (file)
@@ -1080,7 +1080,7 @@ TS_TST_INFO_set_serial
 TS_TST_INFO_set_time
 TS_TST_INFO_set_tsa
 TS_TST_INFO_set_version
-TS_VERIFY_CTS_set_certs
+TS_VERIFY_CTX_set_certs
 TS_VERIFY_CTX_add_flags
 TS_VERIFY_CTX_cleanup
 TS_VERIFY_CTX_free
index db4ce86eb3d0f1e8cf8787d5b68150d6c1d966ee..4b7cdd77dff07bd021a49602dfb66399fffed701 100644 (file)
@@ -214,3 +214,4 @@ X509V3_set_ctx_test
 X509V3_set_ctx_nodb
 EXT_BITSTRING
 EXT_IA5STRING
+TS_VERIFY_CTS_set_certs