summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-09 11:18:58 +1000
committerPauli <paul.dale@oracle.com>2020-01-12 12:02:17 +1000
commit33ee9ae059ac6f0ce1871da96116c6d582ec524b (patch)
tree1b1af5690e78714f79dfc315f4eb35525444945f /test
parent0feef76fe07e75b70155468f0a5956242d27b316 (diff)
Deprecate the low level MDC2 functions.
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10790)
Diffstat (limited to 'test')
-rw-r--r--test/build.info14
-rw-r--r--test/mdc2_internal_test.c6
-rw-r--r--test/mdc2test.c6
3 files changed, 19 insertions, 7 deletions
diff --git a/test/build.info b/test/build.info
index 1d59dd9bb6..de618b51d9 100644
--- a/test/build.info
+++ b/test/build.info
@@ -624,15 +624,15 @@ IF[{- !$disabled{tests} -}]
SOURCE[keymgmt_internal_test]=keymgmt_internal_test.c
INCLUDE[keymgmt_internal_test]=.. ../include ../apps/include
DEPEND[keymgmt_internal_test]=../libcrypto.a libtestutil.a
- ENDIF
- IF[{- !$disabled{mdc2} -}]
- PROGRAMS{noinst}=mdc2_internal_test
- ENDIF
+ IF[{- !$disabled{mdc2} -}]
+ PROGRAMS{noinst}=mdc2_internal_test
+ ENDIF
- SOURCE[mdc2_internal_test]=mdc2_internal_test.c
- INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
- DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
+ SOURCE[mdc2_internal_test]=mdc2_internal_test.c
+ INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
+ DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a
+ ENDIF
PROGRAMS{noinst}=asn1_time_test
SOURCE[asn1_time_test]=asn1_time_test.c
diff --git a/test/mdc2_internal_test.c b/test/mdc2_internal_test.c
index 38b5f34957..0e32331f24 100644
--- a/test/mdc2_internal_test.c
+++ b/test/mdc2_internal_test.c
@@ -9,6 +9,12 @@
/* Internal tests for the mdc2 module */
+/*
+ * MDC2 low level APIs are deprecated for public use, but still ok for
+ * internal use.
+ */
+#include "internal/deprecated.h"
+
#include <stdio.h>
#include <string.h>
diff --git a/test/mdc2test.c b/test/mdc2test.c
index f8c492297e..25cf5a7317 100644
--- a/test/mdc2test.c
+++ b/test/mdc2test.c
@@ -7,6 +7,12 @@
* https://www.openssl.org/source/license.html
*/
+/*
+ * MDC2 low level APIs are deprecated for public use, but still ok for
+ * internal use.
+ */
+#include "internal/deprecated.h"
+
#include <string.h>
#include <openssl/provider.h>
#include <openssl/params.h>