From 678c1e025bcfb70b32c50dc1c9aba7e522a1fd70 Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Mon, 17 May 2004 18:01:28 +0000 Subject: [PATCH] Moving opaque definitions to ossl_typ.h lets us reduce header dependencies. Deprecate inclusion of crypto.h from ui.h. --- crypto/ui/ui.h | 2 ++ crypto/ui/ui_locl.h | 1 + crypto/ui/ui_util.c | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/ui/ui.h b/crypto/ui/ui.h index f7c3054d8c..59da88ea02 100644 --- a/crypto/ui/ui.h +++ b/crypto/ui/ui.h @@ -59,7 +59,9 @@ #ifndef HEADER_UI_H #define HEADER_UI_H +#ifndef OPENSSL_NO_DEPRECATED #include +#endif #include #include diff --git a/crypto/ui/ui_locl.h b/crypto/ui/ui_locl.h index 7d3a75a619..68cc543402 100644 --- a/crypto/ui/ui_locl.h +++ b/crypto/ui/ui_locl.h @@ -60,6 +60,7 @@ #define HEADER_UI_LOCL_H #include +#include struct ui_method_st { diff --git a/crypto/ui/ui_util.c b/crypto/ui/ui_util.c index 46bc8c1a9a..5d9760bb7b 100644 --- a/crypto/ui/ui_util.c +++ b/crypto/ui/ui_util.c @@ -54,7 +54,7 @@ */ #include -#include +#include "ui_locl.h" int UI_UTIL_read_pw_string(char *buf,int length,const char *prompt,int verify) {