Moving opaque definitions to ossl_typ.h lets us reduce header dependencies.
authorGeoff Thorpe <geoff@openssl.org>
Mon, 17 May 2004 18:01:28 +0000 (18:01 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Mon, 17 May 2004 18:01:28 +0000 (18:01 +0000)
Deprecate inclusion of crypto.h from ui.h.

crypto/ui/ui.h
crypto/ui/ui_locl.h
crypto/ui/ui_util.c

index f7c3054..59da88e 100644 (file)
@@ -59,7 +59,9 @@
 #ifndef HEADER_UI_H
 #define HEADER_UI_H
 
+#ifndef OPENSSL_NO_DEPRECATED
 #include <openssl/crypto.h>
+#endif
 #include <openssl/safestack.h>
 #include <openssl/ossl_typ.h>
 
index 7d3a75a..68cc543 100644 (file)
@@ -60,6 +60,7 @@
 #define HEADER_UI_LOCL_H
 
 #include <openssl/ui.h>
+#include <openssl/crypto.h>
 
 struct ui_method_st
        {
index 46bc8c1..5d9760b 100644 (file)
@@ -54,7 +54,7 @@
  */
 
 #include <string.h>
-#include <openssl/ui.h>
+#include "ui_locl.h"
 
 int UI_UTIL_read_pw_string(char *buf,int length,const char *prompt,int verify)
        {